About

I'm Mike Pope. I live in the Seattle area. I've been a technical writer and editor for over 35 years. I'm interested in software, language, music, movies, books, motorcycles, travel, and ... well, lots of stuff.

Read more ...

Blog Search


(Supports AND)

Feed

Subscribe to the RSS feed for this blog.

See this post for info on full versus truncated feeds.

Quote

One way to make a million dollars would be to work for the Post Office your whole life, and save every penny of your salary. Imagine the stress of working for the Post Office for fifty years. In a startup you compress all this stress into three or four years. You do tend to get a certain bulk discount if you buy the economy-size pain, but you can't evade the fundamental conservation law. If starting a startup were easy, everyone would do it.

Paul Graham



Navigation





<February 2025>
SMTWTFS
2627282930311
2345678
9101112131415
16171819202122
2324252627281
2345678

Categories

  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  
  RSS  

Contact Me

Email me

Blog Statistics

Dates
First entry - 6/27/2003
Most recent entry - 9/4/2024

Totals
Posts - 2655
Comments - 2677
Hits - 2,728,200

Averages
Entries/day - 0.34
Comments/entry - 1.01
Hits/day - 345

Updated every 30 minutes. Last: 12:09 PM Pacific


  10:46 AM

Finally got around to posting an FAQ on issues to do with configuring and sending email messages from ASP.NET.

On first blush, sending email from a Web app is deceptively simple; it takes about 10 lines of code. Most of the articles and other documentation I've seen about sending email stop right there. Few of them go into any details about how to configure the all-important SMTP server that does all the heavy lifting; generally, this is dismissed with some general hand-waving about "you must have an SMTP server available and configured properly." Yet that's a source of many of the problems.

Moreover, there are many ways that sending email can go wrong, and I personally seem to have experienced just about every one of them. Because ASP.NET email classes are really just wrappers on a Windows COM object (CDO), the error messages you get when things go wrong are pretty unhelpful, along the lines of "Could not access 'CDO.Message' object." Yeah, thanks, that helps a lot. On top of that, you might have been "successful" in sending a message -- that is, it might have made the first hop to your local email server ok -- but then the recipient's email server might have a problem with your email, and you won't know that till later, when the email bounces or something.

Anyway, that's done for now. At some point I'll need to take the FAQ information and find a way to slip it into the documentation at work, although technically I don't own the mail stuff.

[categories]   , ,

|