|Anonymous | Login | Signup for a new account||2019-12-09 01:44 GMT|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001319||SiT!||outbound email||public||2010-05-06 10:00||2010-05-06 10:07|
|Product Version||3.60 LTS|
|Target Version||Fixed in Version|
|Summary||0001319: error when using gen_mail() in Mime_mail manually|
|Description||I created a class which extends Mime_mail (to be able to use PEAR::mail without too much hassle), but it might be an issue with Mime_mail itself (not sure though) because Mime_mail->send_mail uses explode() with CRLF.CRLF-delimiter too.|
If you call Mime_mail and pass the to, from, subject and body to the constructor gen_mail() will generate something like this (CRLF is a placeholder):
The result of this is:
send_mail() can't split header and body as intented, because it doesn't find CRLFCRLF at the appropriate position. This results in weird emails.
I fixed this by adding
$email .= (empty($email)) ? CRLF.CRLF : CRLF;
in gen_mail() just before the line containing
$email .= $this->build_message();
*Should* not result in any unwanted side effects (because $email is set to "empty" right on top) but no guarantee. :)
|Tags||No tags attached.|
Ah sorry, didn't notice the way you guys handle the body ($mime->attach($body...)). If you use this my fix will mess up the email by itself and your way works.
Still, the report issues seems to be a bug, but my "fix" isn't a solution atm.
|2010-05-06 10:00||jko||New Issue|
|2010-05-06 10:07||jko||Note Added: 0003149|
|Copyright © 2000 - 2019 MantisBT Team|