2010/12/2 Michael Crowl <[email protected]>:
>
> Possible solutions? I'm a little frazzled and a little undereducated here.
Use the under-appreciated fifth paramter in mail() to pass the -f
flag to sendmail, like so:
<?php
$to = '[email protected]';
$subject = 'This is an emample for a php-general request!';
$body = 'This is the body of the email.';
$headers = "From: [email protected]\r\n";
$headers .= "X-Mailer: PHP/".phpversion()."\r\n";
$sendmail_flag = '[email protected]'; // Note the lack of
space between the flag and variable
mail($to,$subject,$body,$headers,$sendmail_flag);
?>
--
</Daniel P. Brown>
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php