Hello, When I try to send E-mail using C# with gmail's smtp server,I get this error..
"The remote certificate is invalid according to the validation procedure".
SSL is enabled
Port used is 587
server name used is "Smtp.gmail.com".
username and password is correct
outlook express works fine on the same pc with the same settings
The c# program also works fine in other places...we get this error only in the clients place.
Would appreciate any help..
Thanks
Edit: @Andomar,Where do I find the root certificates in the client? How do I fix this?
@Alnitak,How do I issue starttls using System.Net.Mail library though?
@David,What do I pass as parameter for "(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)"
Thanks David. I've added those lines. But,I'm still confused about whats going on since this code doesn't have any direct connection with System.Net.Mail as far as my understanding.Hope the problem goes away.