ASP.net电子邮件正文消息 [英] ASP.net Email Body Message

查看:61
本文介绍了ASP.net电子邮件正文消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

当我在asp.net中发送电子邮件时,它的工作正常,并且可以在本地以及在Internet上托管时得到它.

我在Internet上托管主机消息时始终出现的问题,默认情况下始终显示这是电子邮件的正文内容."

代码如下.

Dear All,

When i sent an email in asp.net its working fine and i got it in my local as well as when i host on internet.

The problem in when i host in internet the Body message showing always/by default "this is the body content of the email."

the code is below.

Dim mail As New MailMessage()

    'set the addresses
    mail.From = New MailAddress("abc@abc.net")
    mail.[To].Add(TextBox1.Text)

    'set the content
    mail.Subject = "This is an email"

    mail.Body = "Thanks you register with abc company"

    'send the message
    Dim smtp As New SmtpClient("127.0.0.1")

    Dim Credentials As New NetworkCredential("abc@abc.net", "secret")
    smtp.Credentials = Credentials
    smtp.Send(mail)




它在我的本地和Internet上都能正常工作,每当我向电子邮件发送主题消息显示这是电子邮件的正文内容"时,Internet上的唯一问题,请对此提供帮助.

谢谢
Basit.




Its working fine in my local as well as internet, the only problem in internet whenever i sent an email the subject message showing "this is the body content of the email" Please help on that.

Thanks
Basit.

推荐答案

查看以下链接

使用ASP.NET 2.0的简易SMTP邮件 [ ^ ]

使用smtp gmail服务器在asp.net中发送电子邮件 [ ^ ]


希望您能找到解决方案..


谢谢
Check out the following links

Easy SMTP Mail Using ASP.NET 2.0[^]

sending email in asp.net using smtp gmail server[^]


hope you will get the solution..


Thanks


这篇关于ASP.net电子邮件正文消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆