Hi,

when i use a cron task to send my newsletters (with simplenews), if a theme is used in htmlmail, the mail is not send.
The error is : "Refusing to send a blank email to ..."

If no theme is used, the mail is send

What can i do ?

Thanks for your help
sorry for my poor englih

Comments

pillarsdotnet’s picture

Status: Active » Postponed (maintainer needs more info)

That error means that the theme produced a WSOD or otherwise returned no data at all.

Please tell me whether you have any of the following modules installed:

Also, if you have customized the htmlmail-simplenews.tpl.php file, please upload or send me your customized version.

pillarsdotnet’s picture

Title: No theme allowed in cron task » Email body is blank when sending Simplenews newsletters via cron.
Assigned: Unassigned » pillarsdotnet
Priority: Critical » Major

I have made some changes to HTML Mail 6.x-2.57 that should help find the cause of the problem. Be sure to check the admin/reports/dblog (Recent log entries) for messages of Type: htmlmail.

devtux’s picture

I have installed the new version. The error messages make me progress in my problem.

But with this version i d'ont have the choice of the theme (step 2 not appear).

However, the problem came from my method of starting te cron.php.
I used the command line "/usr/bin/php http://mysite/cron.php" and with this the path variable ar not correct
with this command line "wget -O - -q -t 1 http://www.example.com/cron.php", all is correct.

My problem is that my site is on a server where i can't use wget or lynx, so if you have an idea ...

Sorry for this bug, htmail works fine and my problem is not due to this module

Thanks for you help

pillarsdotnet’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.