1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sending Mail from inside Sitefinity 4.0

Sending Mail from inside Sitefinity 4.0

3 posts, 0 answered
  1. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    14 May 2011
    Link to this post
    Assume I've set up the smtp settings in admin.

    What is the simplest way of creating and sending an email?

    -- 
    Stuart
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    16 May 2011
    Link to this post
    Hi Stuart ,

    You can use EmailSender.Send method

    EmailSender sen = EmailSender.Get();
    sen.Send(new MailMessage(new MailAddress("mail"), new MailAddress("imail")));

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    16 May 2011
    Link to this post
    Ivan,

    Thanks for that. I'll give it a shot.

    -- 
    Stuart
3 posts, 0 answered