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

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -