从未收到ASP.NET SMTP邮件 [英] ASP.NET SMTP mail never received

查看:82
本文介绍了从未收到ASP.NET SMTP邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我第一次尝试使用System.Net.Mail类,使用

ASP.NET 2.0。


我根据
设置了所有内容 http://www.codeproject.com/aspnet/EasySMTP_package.asp ,它给了我

a发送邮件的工作环境。


我确信代码是正确的,没有错误,一切似乎都很好。但是,我从未收到过该电子邮件。我在发布之前已经完成了一些

的研究,我怀疑它从未被发送过因为我使用完全随机的电子邮件来获取Msg.From属性,这可能是是

错了。我在Windows XP,IIS 6.0下,我想知道我是怎么回事
我应该知道哪些有效的电子邮件可以放在From?是否有一种

方式来添加邮件(仅限转发)地址,我们可以从中有效地发送电子邮件,在IIS或其他任何地方发送电子邮件?如果我只是从localhost发送了

(没有域名或任何东西,只是我自己的电脑),我该如何才能知道要在From中使用哪些电子邮件? br />

对此的任何帮助都将非常感谢,

提前感谢!

Hi all,

I am trying to use the System.Net.Mail class for the first time, with
ASP.NET 2.0.

I setup everything according to
http://www.codeproject.com/aspnet/EasySMTP_package.asp, which gives me
a working environment for sending mails.

I am sure the code is correct, there are no errors and everything seems
to work fine. However, I never receive the email. I''ve done some
research before posting this, and I suspect it is never sent because I
use a totally random email for the Msg.From Attribute, which may be
wrong. I am under Windows XP, IIS 6.0, and I would like to know how am
I supposed to know what valid email can I put in the From ?? Is there a
way to add mail (forward only) addresses from which we can effectively
send emails, somewhere in IIS or anywhere else? How am I supposed to
know what email to use in the From, if I simply sent it from localhost
(no domain or anything, just my own computer)?

Any help on this would be much appreciated,
thanks in advance!

推荐答案

快速检查一下,看看你是否在

SMTP中继中丢弃了你的电子邮件。


%systemdrive %\inetpub \ mailroot \ drop

%systemdrive%\inetpub\mailroot\badmail

%systemdrive%\inetpub\mailroot \que


这有助于缩小代码(如果您的消息是生成

并打包好的话)或SMTP on你的网络服务器。


在from字段中,它取决于你的SMTP服务器。我们的Exchange服务器

被锁定并要求您拥有相同的域名,因此我们使用donotreply @ {

我们的域名} .com或类似的东西。你应该可以使用你的
自己的电子邮件地址。


如果你对你的代码感到好奇,你是否尝试过使用断点? />
代码并单步执行以确保它达到每一步?


-dl


---

David Longnecker

Web开发人员
http:/ /blog.tiredstudent.com
A quick check would be to see if you''re dropping your email messages at the
SMTP relay.

%systemdrive%\inetpub\mailroot\drop
%systemdrive%\inetpub\mailroot\badmail
%systemdrive%\inetpub\mailroot\queue

That''d help to narrow out if it''s the code (if your message is being generated
and packaged OK) or the SMTP on your web server.

In the from field, it depends on your SMTP server. Our Exchange servers
are locked down and require you to have the same domain, so we use donotreply@{
our domain here }.com or something similar. You should be able to use your
own email address.

If you''re curious about your code, have you tried using breakpoints in your
code and stepping through to make sure it hits each step?

-dl

---
David Longnecker
Web Developer
http://blog.tiredstudent.com

大家好,


我正在尝试使用System.Net .Mail类是第一次使用

ASP.NET 2.0。

设置了所有内容 http://www.codeproject.com/aspnet/EasySMTP_package.asp ,它给了我$>
a发送邮件的工作环境。


我确定代码是正确的,没有错误和一切

似乎工作正常。但是,我从未收到过该电子邮件。我在发布之前已经完成了一些

的研究,我怀疑它从未被发送过因为我使用完全随机的电子邮件来获取Msg.From属性,这可能是是

错了。我在Windows XP,IIS 6.0下,我想知道我是怎么回事
我应该知道哪些有效的电子邮件可以放在From?是否有一种方法可以添加邮件(仅限转发)地址,我们可以在这些地址中有效地发送电子邮件,在IIS或其他任何地方发送电子邮件?我怎么知道
应该知道在From中使用什么电子邮件,如果我只是从localhost(没有域名或任何东西,只是我自己的电脑)发送它来获得



对此的任何帮助将不胜感激,

提前感谢!
Hi all,

I am trying to use the System.Net.Mail class for the first time, with
ASP.NET 2.0.

I setup everything according to
http://www.codeproject.com/aspnet/EasySMTP_package.asp, which gives me
a working environment for sending mails.

I am sure the code is correct, there are no errors and everything
seems to work fine. However, I never receive the email. I''ve done some
research before posting this, and I suspect it is never sent because I
use a totally random email for the Msg.From Attribute, which may be
wrong. I am under Windows XP, IIS 6.0, and I would like to know how am
I supposed to know what valid email can I put in the From ?? Is there
a way to add mail (forward only) addresses from which we can
effectively send emails, somewhere in IIS or anywhere else? How am I
supposed to know what email to use in the From, if I simply sent it
from localhost (no domain or anything, just my own computer)?

Any help on this would be much appreciated,
thanks in advance!



感谢您的快速回复:)


我已检入所有子文件夹%systemdrive%\inetpub \ mailroot,

什么都没有。另外,我已经在IIS中启用了跟踪,看看它是否会给b $ b提供一些提示,这里是发送邮件时产生的结果:

23: 01:24 192.168.0.100 EHLO - 250

23:01:24 192.168.0.100 MAIL - 250

23:01:24 192.168.0.100 RCPT - 550
23:01:24 192.168.0.100退出 - 0


我不知道这意味着什么...


对于From字段,我真的不是域名和专家,

这就是为什么我怀疑问题就在那里...你说你使用你的

域名,但如果我只想从

localhost IIS服务器发送电子邮件,而不是附加到任何域,那该怎么办?我试图从

发送电子邮件,正如你所说的那样(这是一个gmail.com地址),它仍然是

不发送..


我逐行进入我的代码(这不长),并且

一切都正常执行,即使是

MailObj.Send(Msg)


所以,我真的认为这是域名问题:\


再次感谢!$ / b

David Longnecker写道:
Thanks for quick reply :)

I''ve checked in all subfolders in %systemdrive%\inetpub\mailroot,
nothing there. Also, I''ve enabled tracing in IIS, to see if it would
give some hints, here''s what it has generated when sending mail :
23:01:24 192.168.0.100 EHLO - 250
23:01:24 192.168.0.100 MAIL - 250
23:01:24 192.168.0.100 RCPT - 550
23:01:24 192.168.0.100 QUIT - 0

I haven''t a clue of what that means...

For the From field, I am really no expert in terms of domains and all,
so that''s why I suspect the problem is there...you say you use your
domain, but what''s mine if I simply want to send an email from a
localhost IIS server, not attached to any domain? I tried to send from
my email, as you said, (which is a gmail.com address), and it still
doesn''t send..

I stepped into my code line by line (it isn''t that long), and
everything is executed normally, even the
MailObj.Send(Msg)

So, I really think it that ''domain'' problem :\

thanks again!

David Longnecker wrote:

快速检查一下,看看你是否放弃了你的电子邮件

SMTP中继。


%systemdrive%\inetpub \ mailroot \ drop

%systemdrive%\inetpub \ mailroot \ badmail

%systemdrive%\inetpub \ mailroot \queue


这有助于缩小它是否'' s代码(如果您的消息正在生成

并打包好)或您的网络服务器上的SMTP。


来自现场d,这取决于您的SMTP服务器。我们的Exchange服务器

被锁定并要求您拥有相同的域名,因此我们使用donotreply @ {

我们的域名} .com或类似的东西。你应该可以使用你的
自己的电子邮件地址。


如果你对你的代码感到好奇,你是否尝试过使用断点? />
代码并单步执行以确保它达到每一步?


-dl


---

David Longnecker

Web开发人员
http:/ /blog.tiredstudent.com

大家好,


我正在尝试使用System.Net .Mail类是第一次使用

ASP.NET 2.0。

设置了所有内容 http://www.codeproject.com/aspnet/EasySMTP_package.asp ,它给了我$>
a发送邮件的工作环境。


我确定代码是正确的,没有错误和一切

似乎工作正常。但是,我从未收到过该电子邮件。我在发布之前已经完成了一些

的研究,我怀疑它从未被发送过因为我使用完全随机的电子邮件来获取Msg.From属性,这可能是是

错了。我在Windows XP,IIS 6.0下,我想知道我是怎么回事
我应该知道哪些有效的电子邮件可以放在From?是否有一种方法可以添加邮件(仅限转发)地址,我们可以在这些地址中有效地发送电子邮件,在IIS或其他任何地方发送电子邮件?我怎么知道
应该知道在From中使用什么电子邮件,如果我只是从localhost(没有域名或任何东西,只是我自己的电脑)发送它来获得



对此的任何帮助将不胜感激,

提前感谢!
Hi all,

I am trying to use the System.Net.Mail class for the first time, with
ASP.NET 2.0.

I setup everything according to
http://www.codeproject.com/aspnet/EasySMTP_package.asp, which gives me
a working environment for sending mails.

I am sure the code is correct, there are no errors and everything
seems to work fine. However, I never receive the email. I''ve done some
research before posting this, and I suspect it is never sent because I
use a totally random email for the Msg.From Attribute, which may be
wrong. I am under Windows XP, IIS 6.0, and I would like to know how am
I supposed to know what valid email can I put in the From ?? Is there
a way to add mail (forward only) addresses from which we can
effectively send emails, somewhere in IIS or anywhere else? How am I
supposed to know what email to use in the From, if I simply sent it
from localhost (no domain or anything, just my own computer)?

Any help on this would be much appreciated,
thanks in advance!


除了上一篇文章


(inetpub / mail stuff)


您还要确保指定正确的身份验证。


查看此帖子:

2 / 8/2006

使用DotNet配置部分(1.1和2.0)设置更智能的电子邮件/ Smtp
http://sholliday.spaces.live.com/blog/

尝试不同的电子邮件(收件人)组合,因为有时会出现问题喜欢

hotmail将阻止收到的电子邮件。这可能不是问题所在,但我还是提到了b $ b提到它。


" ibiza" < la ****** @ gmail.com在留言中写道

news:11 ********************* @ b28g2000cwb。 googlegro ups.com ...
In addition to the previous post

(inetpub/mail stuff)

you also want to make sure you specifying the correct "authentication".

Check this post:
2/8/2006
Smarter Email/Smtp setup with DotNet Configuration Sections (1.1 and 2.0)
http://sholliday.spaces.live.com/blog/
Try different email (recipient) combo''s , because sometimes something like
hotmail will block an incoming email. That''s probably not the issue, but I
mention it anyways.


"ibiza" <la******@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...

大家好,


我正在尝试使用System.Net.Mail类第一次,使用

ASP.NET 2.0。

我根据
http://www.codeproject.com/aspnet/EasySMTP_package.asp ,它给了我

a发送邮件的工作环境。


我确信代码是正确的,没有错误,所有内容似乎都很好。但是,我从未收到过该电子邮件。我在发布之前已经完成了一些

的研究,我怀疑它从未被发送过因为我使用完全随机的电子邮件来获取Msg.From属性,这可能是是

错了。我在Windows XP,IIS 6.0下,我想知道我是怎么回事
我应该知道哪些有效的电子邮件可以放在From?是否有一种

方式来添加邮件(仅限转发)地址,我们可以从中有效地发送电子邮件,在IIS或其他任何地方发送电子邮件?如果我只是从localhost发送了

(没有域名或任何东西,只是我自己的电脑),我该如何才能知道要在From中使用哪些电子邮件? br />

对此的任何帮助将不胜感激,

提前感谢!
Hi all,

I am trying to use the System.Net.Mail class for the first time, with
ASP.NET 2.0.

I setup everything according to
http://www.codeproject.com/aspnet/EasySMTP_package.asp, which gives me
a working environment for sending mails.

I am sure the code is correct, there are no errors and everything seems
to work fine. However, I never receive the email. I''ve done some
research before posting this, and I suspect it is never sent because I
use a totally random email for the Msg.From Attribute, which may be
wrong. I am under Windows XP, IIS 6.0, and I would like to know how am
I supposed to know what valid email can I put in the From ?? Is there a
way to add mail (forward only) addresses from which we can effectively
send emails, somewhere in IIS or anywhere else? How am I supposed to
know what email to use in the From, if I simply sent it from localhost
(no domain or anything, just my own computer)?

Any help on this would be much appreciated,
thanks in advance!



这篇关于从未收到ASP.NET SMTP邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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