Zum Hauptinhalt wechseln

 Subscribe

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:

using System.Net;

using System.Net.Mail;

using SendGridMail;

using SendGridMail.Transport;

It can be this easy

// Create an email message and set the properties.

SendGrid message = SendGrid.GenerateInstance();

message.AddTo(“anna@contoso.com”);

message.From = new MailAddress(“john@contoso.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.

transport.Deliver(message);

Signup for 25,000 free emails a month today!

  • Explore

     

    Let us know what you think of Azure and what you would like to see in the future.

     

    Provide feedback

  • Build your cloud computing and Azure skills with free courses by Microsoft Learn.

     

    Explore Azure learning


Join the conversation