Jump to content

Recommended Posts

Hello all,

 

I'm trying to send the results of a form processing operation through email. I'm doing this on a Windows machine with WAMP and using Mobile TCP as smtp forwarding mechanism to point to my ISP smtp server.

 

The finished message is formated as such:

 

$body = "Message received from the automated contact form at www.mzproperty.co.uk\n";
$body .= "DO NOT REPLY TO THIS MESSAGE\n";
/*...*/
$body .= "-----------------------------\n";
$body .= "END OF MESSAGE\n";

 

On my web host this formatting works fine. It also follows what I am learning from the PHP manual. But when ran from my machine, it is refused by my ISP's MTA (qmail) with a "server response: 451" pointing me to the fact I'm using bare LFs on my message. When changing the LFs to CRLF the message gets successfully through.

 

So... this confused me.

What exactly is the right way to do it? qmail directs me to RFC 822 section 2.3 which is actually 3.2. It seems to be right; The PHP Manual instructs me in the use of LF, and my web host doesn't care as both forms get through.

Link to comment
https://forums.phpfreaks.com/topic/93741-qmail-and-bare-lfs/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

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.