Overview
I will demonstrates how to perform common programming tasks with the SendGrid email service on Azure. The samples are written in C# and supports .NET Standard 1.3. The scenarios covered include constructing email, sending email, adding attachments, and enabling various mail and tracking settings.
What is the SendGrid Email Service?
SendGrid is a cloud-based email service that provides reliable transactional email delivery, scalability, and real-time analytics along with flexible APIs that make custom integration easy. Common SendGrid use cases include:
Automatically sending receipts or purchase confirmations to customers.
Administering distribution lists for sending customers monthly fliers and promotions.
Collecting real-time metrics for things like blocked email and customer engagement.
Forwarding customer inquiries.
Processing incoming emails.
Azure customers can unlock 25,000 free emails each month. These 25,000 free monthly emails will give you access to advanced reporting and analytics and all APIs (Web, SMTP, Event, Parse, and more).
To sign up for a SendGrid account
1. Sign in to the Azure portal.
2. In Azure portal menu or the home page, create a resource.
3. Search for SendGrid in the Marketplace.
4. Create the signup form and select create.
5. Enter a Name to identify your SendGrid service in your Azure settings. Names must be between 1 and 100 characters in length and contain only alphanumeric characters, dashes, dots, and underscores. The name must be unique in your list of subscribed Azure Store Items.
6. Enter and confirm your Password.
7. Choose your Subscription.
8. Create a new Resource group or use an existing one.
9. In the Pricing tier section select the SendGrid plan you want to sign up for.
10. Enter a Promotion Code if you have one.
11. Enter your Contact Information.
12. Review and accept the Legal terms.
13. After confirming your purchase you will see a Deployment Succeeded pop-up and you will see your account listed.
After you have completed your purchase and clicked the Manage button to initiate the email verification process, you will receive an email from SendGrid asking you to verify your account.
You can only send up to 100 emails/day until you have verified your account.
To modify your subscription plan or see the SendGrid contact settings, click the name of your SendGrid service to open the SendGrid Marketplace dashboard.
To find your SendGrid API Key
1. Click Manage.
2. Click the Create API Key.
3. At a minimum, provide the Name of this key and provide full access to Mail Send and select Save.
4. Your API will be displayed at this point one time. Please be sure to store it safely.
To find your SendGrid credentials
1. Click the key icon to find your Username.
2. The password is the one you chose at setup. You can select Change password or Reset password to make any changes.
To manage your email deliverability settings, click the Manage button. This will redirect to your SendGrid dashboard.
You can always reach me at www.techsurinder.com
Comments