This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » Cron do not send mail

Cron do not send mail

Cron do not send mail

Wednesday 18 July 2012 12:54:39 pm - 4 replies

I have create a cron from sending email for some contest winners.

But the email never received.


I was using eZMail() and also ezcMailComposer() both fails.

Works fine when are called as modules.

Any ideea?

Wednesday 18 July 2012 2:16:08 pm

Hi D,

I guess you should check wich user is running the cron. Is it the same that run your web server ? Has it required permission to use your mail server ?

I could be wrong but if your code works fine by a module... hard to say that you"re doing it wrong blunk.gif Emoticon


Thursday 19 July 2012 11:02:10 pm

You can set mail transport to file via site.ini - and every mail sent will be instead saved as file inside the var directory.

Useful for debugging...

Friday 27 July 2012 3:43:53 pm


Take a look at this :

If you are still having problems, consider using ezcMailComposer and ezcMailMtaTransport.


Modified on Friday 27 July 2012 4:02:33 pm by Vincent Robic

Monday 06 August 2012 1:54:51 pm

I was using  the classic php mail function, because cannot find the real problem of the email via cron, I think is specific to server configuration, Plesk powered.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from