Topic: Adding a $msg component to 'Send to a Friend' email
I'm trying to add the job title and company name of the position being send via the 'Send to a Friend' function in class.Postman.php so I created
$msg .= "\n\nTitle: " . $data['title'] . "\n\nCompany: " . $data['company'];
and added it to
class.Postman.php
and also added
$data
to
public function MailSendToFriend($friend_email, $my_email, $my_message, $data)
thinking it was required. In the end I get the below...(I purposely left out the if { else } portion of the code for posting here)...but the email still leaves out the
$data['title'] and $data['company'] strings.
// Send a job post to a friend
public function MailSendToFriend($friend_email, $my_email, $my_message, $data)
{
$subject = SITE_NAME;
$subject .= "Job Recommendation !!!";
$msg .= "\n\nThis email " . $my_email . 'recommends a job to you.';
$msg .= "\n\nYour friend's message is:" . $my_message;
$msg .= "\n\nTitle: " . $data['title'] . "\n\nCompany: " . $data['company'];
$msg .= "\nTo view the job, click here:" . $_SERVER['HTTP_REFERER'];
What do I need to do to get those two stings included in the email?
Thank you.
Tokyoj
"You can't build a reputation on what you're going to do." (Henry Ford)
"Insanity is doing the same thing over and over, expecting different results." (Albert Einstein)