MEMBERSHIP AND SENDING E-MAILS

39 views
Skip to first unread message

Sean Farrow

unread,
Feb 3, 2012, 2:41:30 AM2/3/12
to sharp-arc...@googlegroups.com

Hello:

I am just about to start a new project and want to use s#arp.

I have two queries:

Firstly, has any written/or coes anyone know of a membership provider for s#arp?

Secondly, in a similar vain, does anyone have any e-mail sending code—should I put this in the tasks layer?

Ideally I’d like to use mvc3 razor based views.

Any help appreciated.

Regards

Sean.

Jonathan George

unread,
Feb 3, 2012, 4:29:08 AM2/3/12
to sharp-arc...@googlegroups.com
You can use the standard ASP.NET providers with S#arp - you don't need to do anything special.

Similarly with email sending code - nothing particularly special is required. I put the code in the Infrastructure layer, normally with a corresponding interface in the Domain layer.

Regards
Jon

--
You received this message because you are subscribed to the Google Groups "S#arp Architecture" group.
To post to this group, send email to sharp-arc...@googlegroups.com.
To unsubscribe from this group, send email to sharp-architect...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sharp-architecture?hl=en.

Chris Richards

unread,
Feb 3, 2012, 8:00:19 AM2/3/12
to sharp-arc...@googlegroups.com
You could also take a look at using Rhino Security, Billy has just posted some starter code (although built on S#arp Arch 1.6).

For emails you might also want to take a look at Postal, which allows you to create emails using views. Has worked great in one of my applications, I have an IEmailer interface defined in Core.Contracts.Services and an implementation in the web/controllers project (so that Postal can resolve the views).

Regards,
Chris

Seif Attar

unread,
Feb 3, 2012, 1:36:24 PM2/3/12
to sharp-arc...@googlegroups.com
I remember some1 was working on a provider using SharpArch, if you search this group you should be able to find the link.



Sent from my phone


Thomas Randle

unread,
Feb 3, 2012, 6:45:18 AM2/3/12
to sharp-arc...@googlegroups.com

I reckon Sean is hoping for a permission base auth framework which is something unfortunately still missing for open source impls as far as I know

Seif Attar

unread,
Feb 13, 2012, 5:34:19 PM2/13/12
to sharp-arc...@googlegroups.com
sorry thomas, your message had been in moderation since 10 days, just
noticed it now! :|

Sean Farrow

unread,
Feb 13, 2012, 5:38:39 PM2/13/12
to sharp-arc...@googlegroups.com

Hi:

Ideally yes, that’s what I would like!

Sean.

Dofs

unread,
Feb 14, 2012, 3:08:45 PM2/14/12
to S#arp Architecture
Maybe something like this could be useful for you:
https://github.com/rebelliard/NHibernate-Sidekick-Membership-Provider

On 13 Feb., 23:38, Sean Farrow <sean.far...@seanfarrow.co.uk> wrote:
> Hi:
> Ideally yes, that's what I would like!
> Sean.
>
> From: sharp-arc...@googlegroups.com [mailto:sharp-arc...@googlegroups.com] On Behalf Of Thomas Randle
> Sent: 03 February 2012 11:45
> To: sharp-arc...@googlegroups.com
> Subject: Re: [sharp-architecture] MEMBERSHIP AND SENDING E-MAILS
>
> I reckon Sean is hoping for a permission base auth framework which is something unfortunately still missing for open source impls as far as I know
> On Feb 3, 2012 8:29 PM, "Jonathan George" <j...@jonathangeorge.co.uk<mailto:j...@jonathangeorge.co.uk>> wrote:
> You can use the standard ASP.NET<http://ASP.NET> providers with S#arp - you don't need to do anything special.
>
> Similarly with email sending code - nothing particularly special is required. I put the code in the Infrastructure layer, normally with a corresponding interface in the Domain layer.
>
> Regards
> Jon
> On 3 February 2012 07:41, Sean Farrow <sean.far...@seanfarrow.co.uk<mailto:sean.far...@seanfarrow.co.uk>> wrote:
> Hello:
> I am just about to start a new project and want to use s#arp.
> I have two queries:
> Firstly, has any written/or coes anyone know of a membership provider for s#arp?
> Secondly, in a similar vain, does anyone have any e-mail sending code-should I put this in the tasks layer?
> Ideally I'd like to use mvc3 razor based views.
> Any help appreciated.
> Regards
> Sean.
> --
> You received this message because you are subscribed to the Google Groups "S#arp Architecture" group.
> To post to this group, send email to sharp-arc...@googlegroups.com<mailto:sharp-architecture@googlegroups. com>.
> To unsubscribe from this group, send email to sharp-architect...@googlegroups.com<mailto:sharp-architecture%2 Bunsub...@googlegroups.com>.
> For more options, visit this group athttp://groups.google.com/group/sharp-architecture?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "S#arp Architecture" group.
> To post to this group, send email to sharp-arc...@googlegroups.com<mailto:sharp-architecture@googlegroups. com>.
> To unsubscribe from this group, send email to sharp-architect...@googlegroups.com<mailto:sharp-architecture%2 Bunsub...@googlegroups.com>.
> For more options, visit this group athttp://groups.google.com/group/sharp-architecture?hl=en.

Alec Whittington

unread,
Feb 14, 2012, 4:26:39 PM2/14/12
to sharp-arc...@googlegroups.com
Another email project I like to use is  https://github.com/lukencode/FluentEmail 

It's worked out well for me so far. Using that and SMTP4Dev has saved me a bunch of time.

Alec Whittington
Owner - Webmaster / Developer



--
You received this message because you are subscribed to the Google Groups "S#arp Architecture" group.

Seif Attar

unread,
Feb 14, 2012, 5:22:26 PM2/14/12
to sharp-arc...@googlegroups.com
Had never heard of FluentEmail nor Postal before they both seem pretty
cool but each with it's draw back, couldn't see that FluentEmail has a
way of providing an Alternative body and Postal seems to require a
FileSystem view (I guess you can always write a custom view engine
that loads templates from DB).

I had used ActionMailer.Net in the past but I prefer how you can just
give the Razor template to FluentEmail, and adding alternative text is
pretty easy, me thinks. I had used Papercut as a dummy SMTP server,
but that gives weird errors after having it running for a long time,
will give SMTP4Dev a try!

Alec Whittington

unread,
Feb 14, 2012, 6:22:46 PM2/14/12
to sharp-arc...@googlegroups.com
I found a few issues with FluentEmail, I just forked and corrected. If I remember correctly, it only had one to address and I corrected that. Guess I should've submitted a patch.

Seif Attar

unread,
Feb 14, 2012, 6:24:10 PM2/14/12
to sharp-arc...@googlegroups.com
yeah, looked at the code, is dead simple! I like it :)
Reply all
Reply to author
Forward
0 new messages