Sending email through Gmail SMTP server - C# and Powershell examples

13. January 2013 23:38 by Jay Grossman in   //  Tags: , , , , ,   //   Comments (0)
I know I haven't posted much code on this blog, but this snippet I found valuable. While I can certainly host my SMTP server, it would be so much easier if I could just Google's (since I am using Google Apps for my site's email). Below is the code you can use to send email's via Google's SMTP server. enjoy... C#   string GmailUserName="myusername@gmail.com"; string GmailPassword="mypassword"; string SendTo="sendto@gmail.com"; string EmailSubject="Test Subject"; s... [More]

About the author

Jay Grossman

techie / entrepreneur that enjoys:
 1) my kids + awesome wife
 2) building software projects/products
 3) digging for gold in data sets
 4) my various day jobs
 5) rooting for my Boston sports teams:
    New England PatriotsBoston Red SoxBoston CelticsBoston Bruins

Month List