Why JFactory::getMailer()->sendMail(....) takes long time to send an email?

781 views
Skip to first unread message

nobody

unread,
Mar 6, 2013, 3:55:21 AM3/6/13
to joomla-de...@googlegroups.com
Hi,

When I call JFactory::getMailer()->sendMail(....) to send an email, it took about 3 - 5 minutes every time, is it normal or not? How can I reduce the time? If I send an email from my Linux mail command in bash script, it only took seconds in the same host.

Thank you.

Kind regards.

Nils Rückmann

unread,
Mar 6, 2013, 12:57:50 PM3/6/13
to joomla-de...@googlegroups.com
How do you send mails ? smtp, mail, sendmail ?

nobody

unread,
Mar 7, 2013, 3:51:39 AM3/7/13
to joomla-de...@googlegroups.com


On Thursday, March 7, 2013 4:57:50 AM UTC+11, Nils Rückmann wrote:
How do you send mails ? smtp, mail, sendmail ?

smtp.


Nils Rückmann

unread,
Mar 7, 2013, 5:28:23 AM3/7/13
to joomla-de...@googlegroups.com
Areyou using smtp for joomla or in your bash script ?

nobody

unread,
Mar 7, 2013, 6:12:36 AM3/7/13
to joomla-de...@googlegroups.com


On Thursday, March 7, 2013 9:28:23 PM UTC+11, Nils Rückmann wrote:
Areyou using smtp for joomla or in your bash script ?

No, I was using mail.

 

piotr_cz

unread,
Mar 7, 2013, 6:42:21 AM3/7/13
to Joomla! General Development
My first thought is that it's not an issue within Joomla, but smtp
server.

I mean, on most hosts php setting max_execution_time is 30s.
This means when script is running for more than that (3-5min), it's
stopped by PHP and you'll see white screen of death and/ or an error.

Try comparing email settings in Joomla configuration to these you use
for sending from bash. Maybe one of the settings makes it run extra
time on smtp server
Reply all
Reply to author
Forward
0 new messages