How can I use Mailjet's SMTP with scripts from Asp.NET?

Here is our indications so you can use our SMTP with Asp.NET Scripts.

You have to use the SmtpClient of System.Net.Mail

This library does not support TLS, so you should use SSL on port 465.

To manage authentication, the SmtpClient has a Credentials property that you can use either in the code or in the configuration of your application.

Example:
SmtpClient client = new SmtpClient("in.mailjet.com", "465") {
Credentials = new NetworkCredential("Api_Key_Mailjet", "Secret_Key_Mailjet"),
EnableSsl = true;
};

Thereafter, to send your emails, you can use the 2 Send() methods of the SmtpClient.

You still can not find the answer to your question?
Do not hesitate to contact our support team or search for other topics!

Try Mailjet now ?
Create an account - no engagement, no hidden fees