php - Cron mail function with Content Type text/html -
there possibility add content type cron command?
i'm doing this:
/usr/local/bin/php /usr/home/login/domains/domain/public_html/cron/script.php > | mail -s "content-type: text/html; charset=utf-8" "topic" example@example.com
but not working...
the -a option mail command allows specifying header - you're passing content-type subject argument. try this:
mail -a "content-type: text/html; charset=utf-8" -s "topic" example@example.com
Comments
Post a Comment