Jump to content

php mail() header - from


lilman

Recommended Posts

Here is a mail script I use that I have not had any priblem with.                               

 

<?php
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= "X-Mailer: PHP/" .phpversion() ."\n";
$headers .= "From: $name <$email>";
$to='[email protected]';
$subject = 'WebForm Question From '. $name;
$body='';
mail($address , $subject, $body, $headers);

?>

 

Nate

Link to comment
https://forums.phpfreaks.com/topic/74245-php-mail-header-from/#findComment-375091
Share on other sites

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.