Re: ASP.NET SMTP mail never received

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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!


.



Relevant Pages

  • Re: smtp mail server on win 2003 sends mail to qmail servers is rejected
    ... There are several places in our website code where we send e-mail messages ... malformed message through the SMTP server. ... IIS 6, ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • Re: IIS & Exchange: 2 x SMTP server?
    ... smtp could only be configured via Exchange ... I have no idea what happend on your Server. ... Back up the server before you reinstall IIS ...
    (microsoft.public.exchange.admin)
  • Re: IIS & Exchange: 2 x SMTP server?
    ... The Exchange Server Setup extends the IIS ... smtp could only be configured via Exchange ... I have no idea what happend on your Server. ...
    (microsoft.public.exchange.admin)
  • Filtering email on ISA
    ... Unless you choose to create a new IIS SMTP Virtual ... Server, ordinarily you will want to Server Publish ... directly to the Exchange SMTP, ...
    (microsoft.public.isa)
  • Re: Relaying Breach via IIS
    ... Since Exchange requires IIS, I'm assuming ... As for securing your server, I would recommend the following steps (with the ... Right-click on Default SMTP Virtual Server and select Properties. ... OWA with SSL: ...
    (microsoft.public.backoffice.smallbiz2000)