This guide helps to set up SMTP2GO with .NET. This library provides a simple way to send email via the SMTP2GO API and also access other endpoints in the API in a standard way.
Advanced setup options, including setting your preferred IOC API connection and using Email Template features, can be found at the GitHub repository.
Add a reference to the latest Nuget package:
Smtp2GoApiService providing your Smtp2Go API key:
EmailMessage object to send
Optional: add base64 encoded or local file system file attachments to the email:
Optional: add base64 encoded or local file system file inline images to the email:
Optional: add custom email headers:
Send the email using the API service’s async
SendEmail method. Response information will contain success and failure information along with any other identifiers returned from the Smpt2Go API.
Integrating SMTP2GO and .NET should be an easy, quick and, hopefully, painless process. And going forward your email delivery should be outstanding!
You can access reports directly in your SMTP2GO dashboard, which will help you understand delivery successes and failures, tracking information and many more useful metrics. We’ve written some great articles outlining the features of your SMTP2GO account and we recommend taking the time to see everything we have to offer.
Should you need extra help from our award-winning support team, we are almost always available to assist. You can find support contact details in your SMTP2GO dashboard and information about retrieving your support PIN here.
Try SMTP2GO free for as long as you like:Try SMTP2GO Free → Paid plans available for over 1,000 emails/month.