Hi, this is an example: <?php $to = '[EMAIL PROTECTED]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [EMAIL PROTECTED]' . "\r\n" . 'Reply-To: [EMAIL PROTECTED]' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers); ?> please take a look to http://www.php.net/manual/en/function.mail.php on http://www.php.net extra headers are well documented. I hope that this can help you! Bye Davide --- In [email protected], "hrmvb" <[EMAIL PROTECTED]> wrote: > > Hi, > > I updated my board to 1.3.4 and installed postoffice. > From the commandline it works fine, but when I try to send mail using > PHP it fails, because a lot of mailservers out there don't accept mail > coming from '[EMAIL PROTECTED]'. > > Who knows how to change the default sender [EMAIL PROTECTED] for PHP > mail()? > > - Harm >
