note 111797 deleted from function.mail by crell

From: Date: Tue, 12 Apr 2022 01:10:02 +0000
Subject: note 111797 deleted from function.mail by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218227@lists.php.net to get a copy of this message
Note Submitter: ittasks at gmail dot com ---- When dealing with mail headers "\n" and "\r\n" *sometimes* makes a big difference. Once our CentOs servers got re-installed, all headers like: $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; ... became part of message body instead of headers I was able to fixed this by replacing "\r\n" with just "\n"

« previous php.notes (#218227) next »