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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -