Guest User

Untitled

a guest
Dec 1st, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <system.net>
  2. <mailSettings>
  3. <smtp from="email">
  4. <network host="host" port="25" userName="" password="=" enableSsl="true" />
  5. </smtp>
  6. </mailSettings>
  7. </system.net>
  8.  
  9. SmtpClient client = new SmtpClient();
  10. return client.SendMailAsync(ConfigurationManager.AppSettings["SupportEmailAddr"],
  11. message.Destination,
  12. message.Subject,
  13. message.Body);
Add Comment
Please, Sign In to add comment