note 47390 deleted from function.mail by aidan

From: Date: Mon, 14 Feb 2005 02:22:51 +0000
Subject: note 47390 deleted from function.mail by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84972@lists.php.net to get a copy of this message
Note Submitter: info29 at pedrofreire dot com ---- Under Windows, because PHP is talking to an SMTP server directly, you need to perform "dot-stuffig", i.e., when a line of body text starts with a dot ("."), replace that with two dots. SMTP will eat away the first dot to transmit the line correctly, but if you do not add the second dot, your original email will either be broken (dots missing) or crippled (a line with a single dot ends the email, for SMTP). This means broken attachments, etc... If you're using mail( $to, $subj, $body ); add this line before that: $body =& str_replace( "\r\n.", "\r\n..", $body );

« previous php.notes (#84972) next »