I have a formmail with System.Net.Mail; namespace whereas I need the recipient to be the administrator receiving the message and also the user that's using the form
using System.Net.Mail;
......
string Email = Request["Email"];
//create the mail message
MailMessage mail = new MailMessage();
//set the addresses
mail.From = new MailAddress("mailer@mydomain.com");
mail.To.Add("admin@mydomain.com,' + Email + '"); // this renders The specified string is not in the form required for an email address erro
Thanks for help
Ed Norton
Go to the complete details ...