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:
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: