Kevin Rich

SMTP Service

...but why?

I've recently started adding the following interface to most of my web applications in which a requirement is to send automated email notifications.

using System.Net.Mail;

namespace MyApp.Core.Service
{
 public interface ISmtpService
 {
 void Send(MailMessage message);
 }
}

And the code . . .

Read More

January 31, 2016

Archive

Cover image credit: http://whoiskevinrich.com