问题描述
亲爱的先生,我想在单个电子邮件ID上发送关于单个E Mail正文的四个邮件信息。
i使用以下代码制作邮件正文
列表编号= EmailID.Trim()。分割(',')。ToList();
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient(smtpcorp.com);
mail.From = new MailAddress( [email protected]);
mail.To.Add(EmailID);
mail.Subject =招标信息;
mail.Body =消息;
SmtpServer.Port = 2525;
SmtpServer.Credentials = new System.Net.NetworkCredential(txtemailid.Text,txtpassword.Text);
SmtpServer.EnableSsl = true;
SmtpServer.Send(mail);
i想让邮件正文循环..
请帮助
Dear sir i want to sent four mail information on single E Mail body on single email id.
i am using following code to make mail body
List numbers = EmailID.Trim().Split(',').ToList();
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("smtpcorp.com");
mail.From = new MailAddress("[email protected]");
mail.To.Add(EmailID);
mail.Subject = "Tender Information";
mail.Body = Message;
SmtpServer.Port = 2525;
SmtpServer.Credentials = new System.Net.NetworkCredential(txtemailid.Text,txtpassword.Text);
SmtpServer.EnableSsl = true;
SmtpServer.Send(mail);
i want to make mail body in loop..
please help
推荐答案
这篇关于邮件体循环发送给单个用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!