Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component

Index of Chilkat Blog Posts

November 14, 2006

"Fool me once…" (Email not Delivered?)

Uggghhhh! Even myself, the author of the Chilkat email component has been burned by this mistake more than once. When sending email, always always always remember to set the SmtpHost property. If you don’t, it defaults to the localhost. If you have IIS’s SMTP running on your computer, and it’s never been setup (or it’s not setup correctly), the SendEmail method still works fine because it hands the email to the localhost SMTP server. But that’s as far as it goes, because it just sits in the queue (i.e. the maildrop directory and then gets moved to the "badmail" directory) Meanwhile, you’re left waiting for your test email to arrive so you can check it — and it never does. You thought it was talking to your intended SMTP server, but it was not. If you check the Mailman.LastErrorText you’ll see the "Connecting to SMTP server localhost:25″ in your log, and if you check your source you’ll notice that the SmtpHost property was never set. Mystery solved…

Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.