Not able to send mail using Rebex.Net.Smtp.Send

0 votes
asked Mar 16, 2015 by rockyshah2015 (750 points)

Hey I am not able to send mail using smtp to my smtp server dont know the reason for it and below is the code that i am using to do so.

Rebex.Net.Smtp.Send("", "", "Subject", "Body", "");

please tell me the possible solution for the above problem as soon as possible.

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Mar 16, 2015 by Tomas Knopp (58,890 points)

Please create the log using the Smtp.DefaultLogWriter property:

Smtp.DefaultLogWriter = new FileLogWriter(@"C:\MyData\log.txt", LogLevel.Debug);
Rebex.Net.Smtp.Send("", "", "Subject", "Body", "");

and then either post the log here, or send it to From the log we will be able to see why you are unable to connect ot your SMTP server and help you then.