e-mail from cron task as html site

dudek888

Verified User
Joined
Jun 21, 2009
Messages
30
Location
Szczecin / Poland
Hi

My customer want receive e-mail from cron task as HTML site.
His PHP script generates correct HTML site but he received e-mails as plain text.
Maybe cron use mail() function as mail($to, $subject, $message); instead of mail($to, $subject, $message, $headers);
How to resolve this problem ?
 
My customer want receive e-mail from cron task as HTML site.
His PHP script generates correct HTML site but he received e-mails as plain text.
Maybe cron use mail() function as mail($to, $subject, $message); instead of mail($to, $subject, $message, $headers);
How to resolve this problem ?
Check this topic.
 

I do not see in this thread any important informations to solve my problem. My cron works and sends the result of the script by e-mail. Just does not add to the header of this message entries:
MIME-Version 1.0
Content-Type: multipart / alternative;
boundary = "some text"

The syntax change from "/usr/local/bin/php -f /home/user/domains/domain.com/public_html/script.php" to "cd /home/user/domains/domain.com/public_html; /usr/local/bin/php -f script.php" does not help.
 
I think the script has problem, Could you share the script (script.php) which wrote for cron task e-mail?
 
Back
Top