问题描述
我得到了它但是......
在我的代码中我根本没有指定smtp服务器。
所以我不是知道它在幕后使用的服务器。
我如何找到这个配置?
这是一个CDO配置吗?
我在注册表中找不到任何东西。
smtp服务器已被更改所以我试着去找出我需要更改它的地方 - 我的web.config中没有任何东西,我甚至都没有指定smtp服务器:-(
非常感谢!
使用System。 Web.Mail;
MailMessage msgMail = new MailMessage();
msgMail.To = toperson;
msgMail.From = fromperson;
msgMail.Subject = emailsubject;
msgMail.BodyFormat = MailFormat.Html;
msgMail.Body = emailbody;
SmtpMail.Send(msgMail);
I got it working BUT......
In my code I don''t specify smtp server at all.
So I don''t know which server its using behind the scene.
How can I find out and where this configuration is?
Is this a CDO configuration?
I could not find anything in the registry.
The smtp server has been changed so i am tryin to figure out where I need to change it - nothing in my web.config and I don''t even specify smtp server :-(
Many thanks!
using System.Web.Mail;
MailMessage msgMail = new MailMessage();
msgMail.To = toperson;
msgMail.From = fromperson;
msgMail.Subject = emailsubject;
msgMail.BodyFormat = MailFormat.Html;
msgMail.Body = emailbody;
SmtpMail.Send(msgMail);
这篇关于ASP .Net 1.1发送电子邮件 - 配置问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!