Uniteam Posted July 10, 2018 Share Posted July 10, 2018 Hello all, I have a problem with a contact form to send mail from site. The mails are sent correctly but with the content-type "text / plain". I need the content-type to be set with "text / html". I can not find the setting (I inherited a site already done). In attachment the mail in my client Many thanks!! new 1.txt Link to comment Share on other sites More sharing options...
louisstephens Posted July 10, 2018 Share Posted July 10, 2018 Unfortunately, there is not enough information here to fully answer your question. It might be useful if you could provide a bit more information to your setup. Are you using any type of module like wiresmtp, or a 3rd party php library to handle emails? Link to comment Share on other sites More sharing options...
Uniteam Posted July 10, 2018 Author Share Posted July 10, 2018 The site use to send email the function 'wireMail' Thanks! Link to comment Share on other sites More sharing options...
dragan Posted July 10, 2018 Share Posted July 10, 2018 https://processwire.com/api/ref/wire-mail/ Use $m->bodyHTML('<html><body><h1>Message Body</h1></body></html>'); in addition to $m->body(); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now