Uniteam Posted July 10, 2018 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
louisstephens Posted July 10, 2018 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?
Uniteam Posted July 10, 2018 Author Posted July 10, 2018 The site use to send email the function 'wireMail' Thanks!
dragan Posted July 10, 2018 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
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