ASP.NET,C# Email

Posted on 2004-11-23
Last Modified: 2008-03-17
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);
Question by:kollu
    LVL 17

    Accepted Solution

    Just list your recipients seperated by a ';' like me@mydomain;you@mydomain
    LVL 7

    Assisted Solution

    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!
    LVL 17

    Expert Comment

    LVL 1

    Expert Comment

    ya,you should separate the recipients by ";".

    Also tell me the value of EMailstring variable?.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now