We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to send bulk email using smtp without authentication?

I am using aspose .networ for my desk top application, In my application i wants to send bulk email using smtp server setting…it is working with server name, port no, user name and password.
My question is how can i send bulk email with out authentication(with out giving user name and password)

Hi Sajeesh,

Thanks for considering Aspose.

You can use the following code snippet to send emails without authentication.

Aspose.Network.Mail.SmtpClient client1 = new SmtpClient("smtpserver", 25);

client1.AuthenticationMethod = Aspose.Network.Mail.SmtpAuthentication.None;

Aspose.Network.Mail.MailMessage msg1 = new Aspose.Network.Mail.MailMessage();

msg1.Subject = "test";


msg1.HtmlBody = "body of the message";

msg1.From = "from@domain.com";