Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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("jitendragupta1040@gmail.com");
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
Posted
Comments
Tomas Takac 16-Apr-15 2:32am    
Not clear. What are you trying to achieve? What do you need the loop for? Some examples would be helpful.

1 solution

are you trying to send email to defined person with different email body?
your question is not clear
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900