声明html-email的mime类型 [英] Declaring mime type for html-email
问题描述
我想创建一个html电子邮件,并且我已经阅读了很多有关如何做的信息.我找不到一条信息.我应该如何声明哑剧类型?我尝试过:
I want to create a html email and I've read a lot about how to do it. There is one piece of information I can't find. How should I declare the mime type? I tried with:
meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
但它不起作用.
以后的修改:
我试图将邮件的内容类型设置为text/html
,但是我不知道如何.从常规电子邮件客户端进行书写时,所有这些.我必须在邮件正文中声明它吗?还是在邮件标题中(如果是,该怎么办?)?
Later edit:
I am trying to set the content-type of the mail to text/html
but I don't know how. All this when writing from a regular email client. I have to declare it in the mail body? Or in the mail header (if so, how do I o it?)?
推荐答案
您是否要在发送到邮件服务器的邮件头中设置内容类型声明?如果是这样,您应该在一行本身中以这种方式设置它:
Are you trying to set the content-type declaration within the message header sent to the mail server? If so, you should set it this way, in a line itself:
Content-Type: text/html; charset=UTF-8
这篇关于声明html-email的mime类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!