Hi all,
The below sends if I set $fromaddress = 'From: me@mysite.ie';
However, for some reason it won't send the way its set below.
Why is this?
I would really appreciate a quick reply.
Thanks.'
// set email headers
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: \n";
$mailcontent = 'Name: '.$name."\n"
.'Email: '.$email."\n"
.'Title: '.$title."\n"
.$name.'s choice: '.$choice."\n";
$fromaddress = 'From: '.$name.'@mysite.ie';
$mailcontent = Stripslashes($mailcontent);
$fromaddress = Stripslashes($fromaddress);
echo '<p>Thank You. Your submission has been sent.</p>';
mail($toaddress, $subject, $mailcontent, $fromaddress);