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

Here are our guidelines so you can use our SMTP with ASP.NET Scripts.

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

You should use SSL on port 587.

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


SmtpClient client = new SmtpClient("", "587") {
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