Jump to content


Photo

Modification of the wiki's documentation

fake sendmail for Windows documentation

  • Please log in to reply
No replies to this topic

#1 devEric69

devEric69

    Newbie

  • Member
  • Pip
  • 2 posts
  • Main OS: Windows 7

Posted 13 January 2016 - 03:20 AM

In the URL "http://wiki.uniforms...P_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:

.../...

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

 

 

Best regards.

 







Also tagged with one or more of these keywords: fake sendmail for Windows, documentation

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users