System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
SmtpClient smtpServer = new SmtpClient();
string password = ConfigurationManager.AppSettings["12312z"];
mail.From = new MailAddress(ConfigurationManager.AppSettings["am@carh.com"]);
string[] toRecipients = vm.ToRecipients.Split(',');
foreach (string toRecipient in toRecipients)
{
if (!string.IsNullOrEmpty(toRecipient))
mail.To.Add(new MailAddress(toRecipient));
}
mail.Subject = vm.Subject;
mail.Body = vm.Body;
vm.FromRecipients = ConfigurationManager.AppSettings["MailFrom"];
smtpServer.Host = ConfigurationManager.AppSettings["Host"];
smtpServer.Port = int.Parse(ConfigurationManager.AppSettings["Port"]);
smtpServer.DeliveryMethod = SmtpDeliveryMethod.Network;
smtpServer.EnableSsl = bool.Parse(ConfigurationManager.AppSettings["EnableSsl"]);
smtpServer.Timeout = 100000;
smtpServer.Credentials = new System.Net.NetworkCredential(vm.FromRecipients, password);
smtpServer.Send(mail);
please show me how to fil them
host mean the Domani or web hosting
i get on WebsitePanle.com