Hello, I have developed a PHP website and I send mails using the mail() function. With many webmails, all works fine. But with the Swisscom Webmail (Bluewin addresses), the received mail body is always empty ! Only the subject appears correctly. It's very special because when I export the mail to an EML file using the webmail, I see all the hidden mail body !? Have somebody the same problem ? Here you can find a part of my PHP mail() function and the building of the e-mail body (in HTML format) : public function sendPaymentOKMail($id, $formula, $cost, $client_address) {
$subject = "SUBJECT IS HERE";
$body = '<html>
<body>
<p>BODY IS HERE<p>
</body>
</html>';
$this->sendSmtpMail($client_address, $subject, $body);
}
public function sendSmtpMail($to, $subject, $body) {
$headers = "MIME-Version: 1.0 \n";
$headers .= "Content-Transfer-Encoding: 8bit \n";
$headers .= "Content-type: text/html; charset=utf-8 \n";
$headers .= "From: XXX <XXX@XXX.CH> \n";
$headers .= "Reply-To: "XXX@XXX.CH" \n";
mail ($to, $subject, $body, $headers); } Thank's in advance for your help. Romain Froidevaux
Mehr anzeigen