fuel / email

Fuel PHP Framework - Fuel v1.x Email library
60 stars 38 forks source link

The body of the e-mail received has begun with a new line. #42

Closed honda0510 closed 11 years ago

honda0510 commented 11 years ago

Hi I sent an e-mail using the FuelPHP 1.6. The body of the e-mail received has begun with a new line. I think 952 line of the driver or 82 line of the smtp is causing the problem. Thank you.

frankdejonge commented 11 years ago

Those places are the mail headers, so not in the body. Could you be a bit more specific about the error?

honda0510 commented 11 years ago
$email = Email::forge();
$email->to('xxx@xxx.com');
$email->subject('subject_sample');
$email->body('body_sample');
$email->send();
Date: Sat, 29 Jun 2013 23:50:06 +0900
From: xxx@xxx.com
To: xxx@xxx.co.jp
Subject: =?UTF-8?B?c3ViamVjdF9zYW1wbGU=?=
Message-ID: <xxx@xxx.com>
X-Priority: 3 (Normal)
X-Mailer: FuelPHP, PHP 5.3 Framework
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"

body_sample
honda0510 commented 11 years ago

I want ...

Date: Sat, 29 Jun 2013 23:50:06 +0900
From: xxx@xxx.com
To: xxx@xxx.co.jp
Subject: =?UTF-8?B?c3ViamVjdF9zYW1wbGU=?=
Message-ID: <xxx@xxx.com>
X-Priority: 3 (Normal)
X-Mailer: FuelPHP, PHP 5.3 Framework
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"

body_sample
kenjis commented 11 years ago

I've also confirmed 2 blank lines with smtp driver.