what is best practises for sending out emails from .net?

  • Thread starter Thread starter Flip
  • Start date Start date
F

Flip

What are the best practises people have found for sending out emails with
their web apps in .net? I've read a few places that talk about using the
System.Web.Mail namespace. But I think that namespace requires an SMTP
server does it not? And if it does, do people redirect the SmtpServer to
their own email servers or to IIS SMTP service and have it use SmartHost to
goto their email server, or just have IIS forward the emails on?

I'm sorry if this has been covered before, I'm just getting into this now
and would appreciate some ideas on what you guys/gals have found that
worked.

Thanks.
 
Smtp.SendMail worked fine for me, both on my ISP and on my home PC.

I did recently use it to send out a newsletter to about 1,300 people.
Windows thought my PC was under attack (from itself) and stopped them from
going out, so if you do something like that I'd recommend limiting yourself
to about 3 emails per second.
 
Most folks I've met will have an SMTP gateway set up somewhere in their
environment and they will code the name of that DNS in a config file, using
that to seed the Mail class.

If you have Exchange in your environment, your Exchange admin is likely to
already have an SMTP gateway running, and they just need to share the name
with you.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Thanks guys for your feedback! :>



Nick Malik said:
Most folks I've met will have an SMTP gateway set up somewhere in their
environment and they will code the name of that DNS in a config file,
using that to seed the Mail class.

If you have Exchange in your environment, your Exchange admin is likely to
already have an SMTP gateway running, and they just need to share the name
with you.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top