e-mail with VS.C# 2005 Beta 2

  • Thread starter Thread starter John J. Hughes II
  • Start date Start date
J

John J. Hughes II

First of all does anyone know if the e-mail client in beta 2 works with SSL
and or what I did wrong below? Changing to the correct user name and
password works with outlook.

try
{
System.Net.Mail.MailMessage mm = new
System.Net.Mail.MailMessage("(e-mail address removed)", "(e-mail address removed)");
mm.Subject = "V2.0 test";
mm.BodyEncoding = Encoding.ASCII;
mm.Body = "Test of the V2.0 e-mail with g-mail";
System.Net.Mail.SmtpClient client = new
System.Net.Mail.SmtpClient("smtp.gmail.com", 587);
client.Credentials = new
System.Net.NetworkCredential("(e-mail address removed)", "Password");
client.EnableSsl = true;
client.UseDefaultCredentials = false;
client.Send(mm);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

error message:
 
Seems I need to add a X509Certificate? Is there a basic one stored on the
computer, I know I never gave outlook one unless it's using its own
internally.

Any suggestions?

Regards,
John
 
No I was not and had to uninstall the beta version for other reasons. I
might be better in the RC version but I can't download it so don't know. My
impression is you have to purchase a certificate that you know the correct
setting for but this is just a guess.

Regards,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top