Re: ASP.NET SMTP mail never received
- From: David Longnecker <dlongnecker@xxxxxxxxxxxxxxxx>
- Date: Mon, 13 Nov 2006 23:09:26 +0000 (UTC)
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
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!
.
- Follow-Ups:
- Re: ASP.NET SMTP mail never received
- From: ibiza
- Re: ASP.NET SMTP mail never received
- References:
- ASP.NET SMTP mail never received
- From: ibiza
- ASP.NET SMTP mail never received
- Prev by Date: GridView and parsing
- Next by Date: Can't display file in Browser. Need help please! Thank you.
- Previous by thread: ASP.NET SMTP mail never received
- Next by thread: Re: ASP.NET SMTP mail never received
- Index(es):
Relevant Pages
|