Jump to content
The Uniform Server Community

Modification of the wiki's documentation


Recommended Posts

In the URL "http://wiki.uniformserver.com/index.php/PHP_mail_function" well written by "Ric", there is a problem. The php code of mail.php should be:

// Retrieve the data form
$email = $ _ POST ['email'];
$subject = $ _ POST ['subject'];
$message = $ _ POST ['message'];
$headers = 'From:
may.be@laposte.net."\ r \ n". <--(!) added line
'Reply-To: may.be@laposte.net."\ r \ n".
'X-Mailer: PHP /'.phpversion();

// Check if a $ _POST value exists
// If not use defaults

if (empty ($ _ POST ['email'])) {


Indeed, without the php function @mail's parameter named $headers, many webmails respond with an smtp error. Here's an excerpt in the debug.log of fake sendmail for Windows:


ipsum etc. <EOL>
. <EOL>
>> 550 5.5.0 Service refused, please try later.
>> LPN105_510 <EOL>
>> Disconnecting from smtp.laposte.net:25



Best regards.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...