格式化电子邮件 [英] Format E-mail
问题描述
你好,
我使用ASP邮件对象通过
电子邮件将在线填写的订单发送给收件人。我想知道是否可以通过电子邮件格式化订单
的方式?我尝试了以下内容,但看不到格式的变化:
H1 ="< b>< font size = 2 color =#ED171F face = Verdana,Arial,Helvetica ,
sans-serif>订单类型:< / font>< / b>"
StrBody = H1 +请求(OrderNum)+ vbCrLf
然后我得到订单类型:就像它没有任何
格式一样简单。
>
如果我执行以下操作:
StrBody ="< b>订单类型:< / b> +请求(OrderNum)+ vbCrLf
然后我得到< b> OrderType:< / b>作为标题。
有没有人知道是否可以格式化文本在
电子邮件中的显示方式ASP邮件对象?是否有不同的方式来控制电子邮件中显示的文本的格式/外观?
感谢您的帮助。
发布您的代码?它看起来像是以纯文本形式发送...
JN < Me@MyDomain.com>在消息中写道
新闻:OF ************** @ TK2MSFTNGP11.phx.gbl ...你好,
我使用ASP邮件对象通过电子邮件将
的在线订单发送给收件人。我想知道是否可以格式化电子邮件中订单的方式?我尝试了以下内容,但看不到
格式的变化:
H1 ="< b>< font size = 2 color =#ED171F face = Verdana,Arial,Helvetica,> sans-serif>订单类型:< / font>< / b>"
StrBody = H1 + Request(OrderNum)+ vbCrLf
然后我收到订单输入:就像它没有任何格式的
一样简单。
如果我执行以下操作:
StrBody ="< ; b>订单类型:< / b> + Request(OrderNum)+ vbCrLf
然后我得到< b> OrderType:< / b>作为标题。
有谁知道是否可以格式化文本在使用ASP Mail对象发送的电子邮件中的样子?是否有不同的方式来控制电子邮件中显示的文本的格式/外观?
感谢您的帮助。
>
本文详细介绍了发送HTML格式电子邮件的方法。
http://www.aspfaq.com/2295
" JN" < Me@MyDomain.com>在消息中写道
新闻:OF ************** @ TK2MSFTNGP11.phx.gbl ...你好,
我使用ASP邮件对象通过电子邮件将
的在线订单发送给收件人。我想知道是否可以格式化电子邮件中订单的方式?我尝试了以下内容,但看不到
格式的变化:
H1 ="< b>< font size = 2 color =#ED171F face = Verdana,Arial,Helvetica,> sans-serif>订单类型:< / font>< / b>"
StrBody = H1 + Request(OrderNum)+ vbCrLf
然后我收到订单输入:就像它没有任何格式的
一样简单。
如果我执行以下操作:
StrBody ="< ; b>订单类型:< / b> + Request(OrderNum)+ vbCrLf
然后我得到< b> OrderType:< / b>作为标题。
有谁知道是否可以格式化文本在使用ASP Mail对象发送的电子邮件中的样子?是否有不同的方式来控制电子邮件中显示的文本的格式/外观?
感谢您的帮助。
>
您使用的是什么对象? CDO? CDONTS?一些第三方对象?
雷在家
JN < Me@MyDomain.com>在消息中写道
新闻:OF ************** @ TK2MSFTNGP11.phx.gbl ...你好,
我使用ASP邮件对象通过电子邮件将
的在线订单发送给收件人。我想知道是否可以格式化电子邮件中订单的方式?我尝试了以下内容,但看不到
格式的变化:
H1 ="< b>< font size = 2 color =#ED171F face = Verdana,Arial,Helvetica,> sans-serif>订单类型:< / font>< / b>"
StrBody = H1 +请求(OrderNum)+ vbCrLf
然后我收到订单输入:就像它没有任何格式的
一样简单。
如果我执行以下操作:
StrBody ="< ; b>订单类型:< / b> + Request(OrderNum)+ vbCrLf
然后我得到< b> OrderType:< / b>作为标题。
有谁知道是否可以格式化文本在使用ASP Mail对象发送的电子邮件中的样子?是否有不同的方式来控制电子邮件中显示的文本的格式/外观?
感谢您的帮助。
>
Hello,
I use an ASP mail object to send orders filled online to a recipient via an
e-mail. I would like to know if it''s possible to format the way the order
looks in an e-mail? I tried the following, but see no change in the format:
H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"
StrBody = H1 + Request(OrderNum) + vbCrLf
Then I get Order Type: just as plain as it would come if it didn''t have any
formatting.
If I do the following:
StrBody = "<b>Order Type:</b> + Request(OrderNum) + vbCrLf
Then I get <b>OrderType:</b> as the heading.
Does anyone know if it''s possible to format the way the text look in an
e-mail that is sent using the ASP Mail Object? Is there a different way of
controlling the format/appearance of the text that appears in an e-mail?
Thanks for your help.
Post your code? It looks like you are sending it as plain text ...
"JN" <Me@MyDomain.com> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl...Hello,
I use an ASP mail object to send orders filled online to a recipient via an e-mail. I would like to know if it''s possible to format the way the order
looks in an e-mail? I tried the following, but see no change in the format:
H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"
StrBody = H1 + Request(OrderNum) + vbCrLf
Then I get Order Type: just as plain as it would come if it didn''t have any formatting.
If I do the following:
StrBody = "<b>Order Type:</b> + Request(OrderNum) + vbCrLf
Then I get <b>OrderType:</b> as the heading.
Does anyone know if it''s possible to format the way the text look in an
e-mail that is sent using the ASP Mail Object? Is there a different way of
controlling the format/appearance of the text that appears in an e-mail?
Thanks for your help.
This article details ways to send HTML formatted e-mail.
http://www.aspfaq.com/2295
"JN" <Me@MyDomain.com> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl...Hello,
I use an ASP mail object to send orders filled online to a recipient via an e-mail. I would like to know if it''s possible to format the way the order
looks in an e-mail? I tried the following, but see no change in the format:
H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"
StrBody = H1 + Request(OrderNum) + vbCrLf
Then I get Order Type: just as plain as it would come if it didn''t have any formatting.
If I do the following:
StrBody = "<b>Order Type:</b> + Request(OrderNum) + vbCrLf
Then I get <b>OrderType:</b> as the heading.
Does anyone know if it''s possible to format the way the text look in an
e-mail that is sent using the ASP Mail Object? Is there a different way of
controlling the format/appearance of the text that appears in an e-mail?
Thanks for your help.
What object are you using? CDO? CDONTS? Some third party object?
Ray at home
"JN" <Me@MyDomain.com> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl...Hello,
I use an ASP mail object to send orders filled online to a recipient via an e-mail. I would like to know if it''s possible to format the way the order
looks in an e-mail? I tried the following, but see no change in the format:
H1 = "<b><font size=2 color=#ED171F face=Verdana, Arial, Helvetica,
sans-serif>Order Type:</font></b>"
StrBody = H1 + Request(OrderNum) + vbCrLf
Then I get Order Type: just as plain as it would come if it didn''t have any formatting.
If I do the following:
StrBody = "<b>Order Type:</b> + Request(OrderNum) + vbCrLf
Then I get <b>OrderType:</b> as the heading.
Does anyone know if it''s possible to format the way the text look in an
e-mail that is sent using the ASP Mail Object? Is there a different way of
controlling the format/appearance of the text that appears in an e-mail?
Thanks for your help.
这篇关于格式化电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!