hi community,

I am having an issue when sending mails using phpmailer through joomla cms;

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3869180 bytes) in /home/site/public_html/includes/phpmailer/class.smtp.php on line 308

My setting for my php.ini are as follows:
memory_limit = 32 M
max_execution_time = 120

Most people suggest to send mails after changing memory limit; is it possible on a shared hosting?

I used swiftmailer for sending attachments along with mail and croned it ; wporked perfectly fine without any issues. I think there should be a way in phpmailer being so successful in order to send mails with this server configurations if swiftmailer can send it.

Any suggestions?