Jump to content

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

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.

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.  ;)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.