Jump to content

add more than one email recipient?


kcotter

Recommended Posts

Here's my code... how can I send this info to (2) addresses????

 

<?php

 

 

 

if (empty($_REQUEST['name']) || empty($_REQUEST['email']))

{

    print 'Please go back and Enter name and Email...<a href="form.html">Back</a>';

}

else

{

 

print 'Thank you '.$name.' for registering to win! <a href="#" onclick="window.close();return false;">close</a>';

 

    $name = "Name: ".$_REQUEST['name']."\n"

    ."Email: ".$_REQUEST['email']."\n"

    ."Address: ".$_REQUEST['address']."\n"

    ."City: ".$_REQUEST['city']."\n"

    ."State: ".$_REQUEST['state']."\n"

    ."Zip: ".$_REQUEST['zip']."\n"

    ."How they heard about us: ".$_REQUEST['hear'];

 

    mail("kalcotter1@yahoo.com", "Someone Registered at BuyWithoutDebt", $name, "From: BuyWithoutDebt@register.com\r\nReply-To: noreply@bwd.com\r\n");

}

 

?>

 

THANKS!!!!!

Link to comment
https://forums.phpfreaks.com/topic/157900-add-more-than-one-email-recipient/
Share on other sites

  Quote
Parameters

 

to

 

    Receiver, or receivers of the mail.

 

    The formatting of this string must comply with » RFC 2822. Some examples are:

 

        * user@example.com

        * user@example.com, anotheruser@example.com

....

I wish there were some examples, easily seen, about what I might be able to do referenced at the beginning.

  Quote

  Quote
Parameters

 

to

 

    Receiver, or receivers of the mail.

 

    The formatting of this string must comply with » RFC 2822. Some examples are:

 

        * user@example.com

        * user@example.com, anotheruser@example.com

....

I wish there were some examples, easily seen, about what I might be able to do referenced at the beginning.

 

Hehehe  :P

 

kcotter, these examples in the manual should cover all the issues you addressed, let us know if there are any other problems.  ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.