I have this as my action='action.php'
for a form and so after submitting the following will be emailed to the specific email as directed and within the email will be the info entered such as name but how can I edit the text showed in email?
I have this in my action.php
public function postContact() {
$fullname = $_POST['fullname'];
$email = $_POST['email'];
$email_message = '
Full Name: '.$fullname.'
Email: '.$email.'
';
mail('abc@abc.com', 'Subject', $email_message);
return Redirect::to('thanks');
}
so when people submit I will get something like
Full Name: Full Name
Email: Email
I tried setting a tag and other tags into the variable but in the email I will just see the tag too.
Am I doing it wrong or this isn't even the way of doing it?