A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Mail form, PHP and multiple recipients

  1. #1
    Senior Member Sir Yendor's Avatar
    Join Date
    Sep 2001
    Location
    Over here
    Posts
    1,140

    Mail form, PHP and multiple recipients

    Not sure if this is the right place for this question, but here goes:

    I'm using this PHP code:

    <?
    $ToEmail = "marketthismedia@aol.com";

    $ToSubject = "Request for free demo";

    $EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessage Sent:\n$ToComments\n";

    mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");

    ?>

    it works and sends an e-mail to the address listed above. I actually want it to send e-mail to two different addresses. I've tried modifying the code so that the first line reads:


    $ToEmail = "marketthismedia@aol.com","Someoneelse@aol.com ";


    but that doesn't work. Any thoughts on how I can modify the code so it will work?

    Thanks

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,044
    Hi,

    what about just duplicating the "mail()" line and putting different addresses there?

    Musicman

  3. #3
    Senior Member Sir Yendor's Avatar
    Join Date
    Sep 2001
    Location
    Over here
    Posts
    1,140
    I'll give that a shot, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center