Project

General

Profile

Actions

Bug #25220

closed

t3lib_div::t3lib_htmlmail->sendtheMail() is unable to send mail with attachments

Added by RENIER over 13 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2011-03-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

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)

Actions

Also available in: Atom PDF