本文介绍了ASP电子邮件正文消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人, 当我在asp中发送电子邮件时,它的工作正常,并且可以在本地以及在Internet上托管时得到它. 我在Internet上托管主机消息时始终出现的问题,默认情况下始终显示这是电子邮件的正文内容." 代码如下.
Dear All, When i sent an email in asp 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") 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", "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中发送电子邮件 [ ^ ] 希望您能找到解决方案.. 谢谢 Check out the following links Easy SMTP Mail Using ASP.NET 2.0[^] sending email in asp using smtp gmail server[^] hope you will get the solution.. Thanks
更多推荐
ASP.net电子邮件正文消息
发布评论