All my cron jobs are configured to email output to
myemail@mydomain.com
Text content comes through, just fine. I have several cron jobs that output HMTL, however cron's output email displays the html tags as-is as text, instead of html. example: <br>
Anyone got lucky being able to send cron output emails in html format (either by configuring fedora or through command line)? help appreciated.
I have tried the following command lines in fedora crontab manager with no luck
TRY 1
CONTENT_TYPE=text/html /usr/bin/php /full/path/myphp.php | mail -s 'email subject'
myemail@mydomain.com
(cron executes, but sends email as a text email, not html email)
TRY 2
/usr/bin/php /full/path/myphp.php | mail -s 'email subject'
myemail@mydomain.com
(cron executes, but sends email as a text email, not html email)
TRY 3
/usr/bin/php /full/path/myphp.php | mail -s 'email subject' -a 'Content-Type: text/html'
myemail@mydomain.com
(cron executes, but does not send email)
TRY 4
/usr/bin/php /full/path/myphp.php | mail -s 'email subject' --append="Content-type: text/html"
myemail@mydomain.com
(cron executes, but does not send email)