0 votes
by (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("noreply@iqbackoffice.com", "rahulacc13@gmail.com", "Subject", "Body", "192.168.110.4");

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

Applies to: Rebex Secure Mail

1 Answer

0 votes
by (58.9k points)

Please create the log using the Smtp.DefaultLogWriter property:

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

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

...