Last active
August 16, 2017 16:00
-
-
Save nillfm/dd41f218507ca78de643bc0591467472 to your computer and use it in GitHub Desktop.
ted-blog1
This file contains 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
public static System.Net.Mail.MailMessage LoadEmail(string file) | |
{ | |
var html = File.ReadAllText("exchange_email.html"); | |
var msg = new MailMessage("joe.customer@xyzcorp.xom", "salesguy@abccorp.com") | |
{ | |
Body = html, | |
IsBodyHtml = true, | |
Subject = "New Order" | |
}; | |
msg.CC.Add("salesmgr@abccorp.com"); | |
return msg; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment