Email Send Problem in those boded lines
String server = "587"; MailAddress from = new MailAddress("newgenetech@gmail.com"); MailAddress to = new MailAddress("mohideenrms@gmail.com"); System.Web.Mail.MailMessage message = new System.Web.Mail.MailMessage(from, to); message.Subject = "Hello"; message.Body = "How are you"; SmtpClient client = new SmtpClient(server); try { client.Send(message); } catch (Exception ex) { throw new Exception(ex.Message, ex); }1 boded error message come like that
Doesn't contain a contractors take two arguments
2 boded error message come like that
(local variable)system.web.mail.mailing message error: the best overload method match for 'system.net.mail.Smptclient.Send'(system.web.mail.mailling message)has some invalid aruguments.
Thanks,
Mohamed.