note 37537 deleted from ref.mail by sp
| From: | sp@php.net | Date: | Mon, 24 Oct 2005 06:18:32 +0000 |
| Subject: | note 37537 deleted from ref.mail by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-97495@lists.php.net to get a copy of this message | ||
Note Submitter: aris AT riponce DOT com
----
If you decide to send mail over an SMTP connection instead of using mail(), keep these hints in
mind:
- Separate the header list from the message body with a single blank line. This way if the message
body contains text that matches the headers you are safe.
- Apply the "hidden dot algirithm" to the body text. This simply means that if a line
begins with a single "." just replace it with two dots "..".
Example:
BEFORE:
-------------------
Subject: My message
Errors-To: me@mine.com
Subject: Lunch
Remember the following items:
item 1
.
.
.
Item 21
---------------------
AFTER:
---------------------
Subject: My message
Errors-To: me@mine.com
Subject: Lunch
Remember the following items:
item 1
..
..
..
Item 21
-----------------------