Created
May 24, 2012 22:46
-
-
Save half-ogre/2784679 to your computer and use it in GitHub Desktop.
For Steve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mailSenderConfiguration = new MailSenderConfiguration() | |
{ | |
DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory, | |
PickupDirectoryLocation = "c:\\dev\\mail", | |
}; | |
var mailSender = new MailSender(mailSenderConfiguration); | |
var mailMessage = new MailMessage | |
{ | |
From = new MailAddress("[email protected]"), | |
Subject = "Sunrise Report", | |
Body = string.Format("#Sunrise Report#{1}##{0}##{1}", DateTime.Now.ToShortDateString(), Environment.NewLine), | |
IsBodyHtml = true | |
}; | |
mailMessage.To.Add(new MailAddress("[email protected]")); | |
mailSender.Send(mailMessage); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment