Jump to content

tell a friend script


fife

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!

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.