Jump to content

Recommended Posts

I have a simple tell a friend script that works fine for the moment.  its a simple....

 

 


$email = $_POST['email'];



                   { mail("$email","Request","Dear Member,
\n\nbla bla bla bla bla\n\n\n\n"); }

 

I have an issue now though.  The form now needs to be able to send 5 separate emails to 5 different people.  How would this be done or is this even possible with the code I have?

 

$email1 = $_POST['email1'];
$email2 = $_POST['email2'];

Link to comment
https://forums.phpfreaks.com/topic/229147-tell-a-friend-script/
Share on other sites

It's easy enough done with an array, but there are a few things you havn't told us, are you actualy going to be using 5 indipendant mail fields?, does it matter if the mail is sent out as a group mail, with each address visible to the others, or does it need to be addressed only to a single recipient?

yes each email will be populated with a different request so the emails need to be individual to each person sent to.

 

Basically it is a script I need which allows one person to send out 5 emails at a time inviting people to join the site.  Each email needs to be sent separately though because there is a unique 25 digit key within each one which I use to identify them when they click the link!

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.