• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

ASP.NET,C# Email

I want to send different href string for different people throgh email with one send.I use the follwoing code.I want to split the email string,actually there could be upto 3 emails for each email I have different url to be coded.

      msgMail.To = EmailString;            msgMail.From = ""                  msgMail.From = str1 + "\"" + str2;
msgMail.Subject =  ""                        msgMail.BodyFormat = MailFormat.Html;                        msgMail.Body = strBody;      SmtpMail.SmtpServer = "";            SmtpMail.Send(msgMail);
0
kollu
Asked:
kollu
  • 2
2 Solutions
 
AerosSagaCommented:
Just list your recipients seperated by a ';' like me@mydomain;you@mydomain
0
 
smolamCommented:
Then you are going to have to use probably 2 "for" loops to loop through each person and the second nested inside the first one looping through the different emails!
0
 
AerosSagaCommented:
agreed;)
0
 
khareatulCommented:
ya,you should separate the recipients by ";".

Also tell me the value of EMailstring variable?.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now