如何将asp.net页面发送到电子邮件 [英] How to send an asp.net page to an email

查看:83
本文介绍了如何将asp.net页面发送到电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我的问题是,如何将页面发送到电子邮件.
我想发送一个页面,
我还没有发送到页面的链接.

请接受我的借口,因为我的英语说得不好.
这对我来说是个很大的问题,但是我却非常运动.

hi all

my problem is that, how to send a page to an email.
i want that send a page,
i have not send a link to page.

please accept my excuse, because i cant speak english well.
its a great problem for me, but i very exercise.

推荐答案

您可以将其作为附件发送,如Amit Kmr Sinha所建议的那样,也可以仅将它的IsBodyHtml属性设置为MailMessage会弹出并将页面的实际HTML加载到消息本身中.
有一个通用例程可以在此处发送电子邮件:发送邮件带有或不带有附件的C#电子邮件:通用例程. [
You can send it as an attachment, as Amit Kmr Sinha suggest, or just set the IsBodyHtml property of the MailMessage onbject and load the actual HTML of the page into the message itself.
There is a generic routine which sends email here: Sending an Email in C# with or without attachments: generic routine.[^]



检查此链接
在asp.net中发送电子邮件 [
Hi ,
Check this link
sending emails in asp.net[^]
Best Regards
M.Mitwalli



如果我没看错,您正在尝试使用电子邮件将页面本身发送给用户.您没有尝试发送链接.对?如果这是问题所在,则可以使用附件将页面发送为asp.net页面.尝试访问以下链接:
使用SMTP服务器在ASP.NET中发送带有附件的电子邮件 [ ^ ]
http://wiki.asp.net /page.aspx/1740/how-to-send-email-with-attachment-from-local-machine/ [ http://www.aspnettutorials.com/tutorials/email/email-attachment-aspnet2- vb.aspx [ ^ ]

祝一切顺利.
-AK
Hi,
If I am not wrong you are trying to send the page itself to the user using email. You are not trying to send a link. Right? If this is the problem then you can send the page using attachment as your asp.net page. Try visiting these links:
Sending Email with attachment in ASP.NET using SMTP Server[^]
http://wiki.asp.net/page.aspx/1740/how-to-send-email-with-attachment-from-local-machine/[^]
http://www.aspnettutorials.com/tutorials/email/email-attachment-aspnet2-vb.aspx[^]

All the best.
-AK


这篇关于如何将asp.net页面发送到电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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