查看: 771|回复: 6
|
ASP发送email的问题
[复制链接]
|
|
我有一个问题就是
为何我这样写sent去hotmail的话是没有问题的
他会diplay这样
Your Username is XXX
Your Password is XXX
但是sent去yahoo的话,他就会连我的HTML的code都display出来
变成这样
"<html><body>Your Username is XXX<br>Your Password is XXX</body></html>
- extBody = "<html><body>Your Username is XXX<br>Your Password is XXX</body></html>"
复制代码
请问各位大大有什么方法可以解决吗?? |
|
|
|
|
|
|
|
发表于 5-5-2006 09:35 AM
|
显示全部楼层
只是你的Yahoo不支援HTML吧?
应该有得设定的吧? |
|
|
|
|
|
|
|

楼主 |
发表于 5-5-2006 07:34 PM
|
显示全部楼层
原帖由 WuSheng 于 5-5-2006 09:35 AM 发表
只是你的Yahoo不支援HTML吧?
应该有得设定的吧?
不是每个人都会去setting的吧?
如果我sent mail给的那个人没有set的话,那不是完蛋。 |
|
|
|
|
|
|
|
发表于 5-5-2006 08:00 PM
|
显示全部楼层
记得好像是有个properties是可以SET
email的type.. 有2种选择. text或html.. |
|
|
|
|
|
|
|
发表于 5-5-2006 08:16 PM
|
显示全部楼层
原帖由 jasonmun 于 5-5-2006 08:00 PM 发表
记得好像是有个properties是可以SET
email的type.. 有2种选择. text或html..
ASP.Net 2.0 -> Dim Msg as MailMessage = new MailMessage()
Msg.IsBodyHtml = true
ASP.Net 1.1 -> Dim Msg as MailMessage = new MailMessage()
Msg.BodyFormat = MailFormat.Html |
|
|
|
|
|
|
|

楼主 |
发表于 5-5-2006 10:11 PM
|
显示全部楼层
原帖由 小妞儿 于 5-5-2006 08:16 PM 发表
ASP.Net 2.0 -> Dim Msg as MailMessage = new MailMessage()
Msg.IsBodyHtml = true
ASP.Net 1.1 -> Dim Msg as MailMessage = new MailMessage()
Msg.BodyForm ...
请问一下,asp的要如何set呢???? |
|
|
|
|
|
|
|
发表于 6-5-2006 05:00 AM
|
显示全部楼层
原帖由 红发 于 5-5-2006 10:11 PM 发表
请问一下,asp的要如何set呢????
不好意思... 小弟没学过ASP... 直接学ASP.Net... 还得请教各位大大...  |
|
|
|
|
|
|
| |
本周最热论坛帖子
|