How to send formatted HTML message to outlook via Form

Asked

Viewed 209 times

0

I am having a small problem, I am trying to send via Outlook an email from a Send via Form, however when it goes to Outlook appears all messed up: "comment=ção são é é".

<form action="mailto:[email protected]" method="post" enctype="text/plain">
    Name:<br>
    <input type="text" name="name"><br>
    E-mail:<br>
    <input type="text" name="mail"><br>
    Comment:<br>
    <input type="text" name="comment" size="50"><br><br>
    <input type="submit" value="Send">
    <input type="reset" value="Reset">
</form>   

Is there any way for it to be sent and the body text of the email to be formatted?

1 answer

0


That’s a charset problem.

try adding this to the header:

<meta charset="utf-8">
  • Already this <html lang="en-BR"> <head> <meta charset="UTF-8">

  • Test switch to <meta charset="Windows-1252">. I had the same problem and solved it in PHP using the following function: mb_convert_encoding($comment, "Windows-1252", "UTF-8");

  • I used the way it passed only to the comment field, but sending the body of the email worked in Firefox

  • but thank you my friend

Browser other questions tagged

You are not signed in. Login or sign up in order to post.