asp.net页面可以向用户发送电子邮件 [英] can an asp.net page send an email to the user
问题描述
我的aspx页面由Discountasp.net托管。我可以使用System.Net.Mail.MailMessage发送电子邮件,但它似乎必须是TO我的Discountasp.net acct。 (他们允许您设置您的网站的电子邮件地址)。
My aspx page is hosted by Discountasp.net. I can use System.Net.Mail.MailMessage to send an email but it seems it must be TO my Discountasp.net acct. (They let you set email accts for your site.)
我想要一个表单,计算一下,并将信息直接发送给已经输入他们的电子邮件地址的用户
I want a form that does a calc and sends the info directly to the user who has typed in their email addr.
推荐答案
这是一个链接到DiscountASP.NET如何在ASP.NET 2.0中发送电子邮件常见问题: https://support.discountasp.net/ KB / a364 / how-to-send-email-in-aspnet-20.aspx 。看起来您使用localhost作为SMTP服务器,尝试演示,看看它是否适用于您。祝你好运!
Here is a link to the DiscountASP.NET "How to send email in ASP.NET 2.0" FAQ: https://support.discountasp.net/KB/a364/how-to-send-email-in-aspnet-20.aspx . It looks like you use "localhost" as your SMTP server, try the demo and see if it works for you. Good luck!
这篇关于asp.net页面可以向用户发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!