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.
Example:
SmtpClient client = new SmtpClient("in.mailjet.com", "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 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.
Example:
SmtpClient client = new SmtpClient("in.mailjet.com", "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.