the VMware is able to ping the gmail server.
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
mail.From = new MailAddress("[email protected]
mail.Subject = "subjct";
mail.Body = "email body!!";
attachment = new System.Net.Mail.Attachment("filename.extension");
SmtpServer.Port = 587;
SmtpServer.Credentials = new System.Net.NetworkCredential("email id", "password");
SmtpServer.EnableSsl = true;
I have got it has something to do with ports being open on vmware some networking issue, but i just can't put a finger on it. Please let know what it is that i am doing wrong.
Thnx - Egon