#25220t3lib_div::t3lib_htmlmail->sendtheMail() is unable to send mail with attachments
Description
When trying to send a mail with an attachement (one ZIP file, about 1.5Mb), the sendtheMail() function does report a fatal error :
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16 bytes) in /var/www/.typo3_src/typo3_src-4.5.2/typo3/contrib/swiftmailer/classes/Swift/CharacterReader/Utf8Reader.php on line 99
with Typo3 4.4.7, it works fine.
ps : the error line number on Utf8Reader.php can takes different values : 99, 113
for information, my code is :
$oHtmlMail = t3lib_div::makeInstance(‘t3lib_htmlmail’);
$oHtmlMail->start();
$oHtmlMail->subject = $subject;
$oHtmlMail->from_email = $this->conf[‘emailFrom’];
$oHtmlMail->replyto_email = $this->conf[‘emailFrom’];
$oHtmlMail->setRecipient($dest);
$oHtmlMail->setHTML($textEmail);
$oHtmlMail->addAttachment(“/tmp/$filename”);
$oHtmlMail->setHeaders();
$oHtmlMail->setContent();
$okCustEmail = $oHtmlMail->sendtheMail();
(issue imported from #M17821)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.