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.

Wurde Ihr Frage immer noch nicht beantwortet?
Zögern Sie nicht unser Support Team zu kontaktieren oder nach anderen Themen zu suchen!

Wollen Sie Mailjet jetzt testen?
Ein Konto erstellen - keine Verpflichtungen, keine versteckten Kosten