Already registered? Log in
This guide helps to setup 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:
Create an Smtp2GoApiService
providing your Smtp2Go API key:
Create an 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.
Try SMTP2GO free for as long as you like:
Try SMTP2GO Free → Paid plans available for over 1,000 emails/month.