Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

Aspose.Email: SmtpException was caught

$
0
0
Hi Support Team,

I am using Aspose.Email to send a Task to the assigned user, Please the below code.

SmtpClient smtpClient = new SmtpClient("mail.domain.com");
smtpClient.UseTnef = true;
smtpClient.Send(eml);

I have tried with username and credential as well as below, but same exception caught
SmtpClient smtpClient = new SmtpClient("mail.domain.com", "abc@domain.com", "abc@123");

On smtpClient.Send(eml); SmtpException was caught: "Failure Sending mail." (Unable to read data from the transport connection: The connection was closed.)

Please assist me on above

With warm regards,
Vipin Panwar

Viewing all articles
Browse latest Browse all 1367

Trending Articles