Trying to customize the tellfriend.php form to include the friends name in the body of the email so it says, "Hello 'Friends Name' instead of just "Hello"
As shown in my screen shot, I am able to generate the input field on the form, but I am not sure of how to get it to appear in the salutation of the body of the email. Oh, and it would be nice to make the pop up screen big enough to accommodate the new field I added. Please help.
Also, I am trying to track the number of referrals members send out as a part of a membership drive. I thought that an easy way to do this would be to send a copy of the email to myself as an additional recipient. I tried the following code to make a hidden field with my email and then include that in the sendmail function. I get email fail message. Maybe this is not the best way to get the information I want. Basically I want a record of the invite including the sender's username and the friend's email. It would be nice if I could make it an email notification so I can track member referrals. Anny advice would be welcome and appreciated. Thanks
I created the hidden field.
'master_email' => array(
'type' => 'hidden',
'name' => 'master_email',
'value' => ',info@mydomain.com'
),
Then changed this line:
$sRecipient = clear_xss($_POST['friends_emails']);
To this:
$sRecipient = clear_xss($_POST['friends_emails' . 'master_email']);