ASP.net电子邮件正文消息

编程入门 行业动态 更新时间:2024-10-23 05:01:09
本文介绍了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电子邮件正文消息

本文发布于:2023-11-16 09:58:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1603260.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:电子邮件   消息   正文   ASP   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!