Last week our friends over at SendGrid shipped new native libraries on GitHub (C#, Node.JS) for Windows Azure developers that make it extremely easy to integrate their mail service into any application built and running in Windows Azure. In addition, SendGrid launched a new offer for Windows Azure customers that provides 25,000 free emails a month! We’ve heard from customers consistently that sending email was too hard and we listened! See detailed, step by step tutorials written by us on how to use SendGrid with Windows Azure in the Developer Center (C#, Node, PHP, Java).
Sending email from Windows Azure has never been so easy. For example, with C#:
Add the SendGrid NuGet package to your Visual Studio project by entering the following command in the NuGet Package Manager Console window:
PM > Install-Package SendGrid
Add the following namespace declarations:
It can be this easy
// Create an email message and set the properties.
SendGrid message = SendGrid.GenerateInstance();
message.From = new MailAddress(“email@example.com”, “John Smith”);
message.Subject = “Testing the SendGrid Library”;
message.Text = “Hello World!”;
// Create an SMTP transport for sending email.
var transport = SMTP.GenerateInstance(new NetworkCredential(“username”, “password”));
// Send the email.
Signup for 25,000 free emails a month today!