Print Page | Close Window

Email Handling with ASP

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=5150
Printed Date: 30 March 2026 at 11:05pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Email Handling with ASP
Posted By: qtechs
Subject: Email Handling with ASP
Date Posted: 20 August 2003 at 9:22am

Can any one tell me How to handle the email...Mean to say...I am sending some 10 mail using CDONTs now out of them some 2 bounced back with Undeliverable massage now I want to handle those two email such a way that I can get the email ids...

 




Replies:
Posted By: dpyers
Date Posted: 20 August 2003 at 5:30pm

Depending upon the reason an email is bounced back, most smtp servers are configured to retry a certain number of times - like every 12 hours for 4 days. Varies by smtp server configuration.

Check with your ISP and see if your account has a postmaster box for dumped emails. Then what you do depends upon how programmable your ISP allows your smtp server to be.

A semi-manual alternative is to use a specifc acount to send them, and set up Outlook or some other client to read-only that account and handle anything that's returned to the account manually.

Email can bounce for a variety of reasons but a good rule of thumb is to delete the account from your mailing list after not being able to deliver for two or three successive mailings. Upon a successful delivery, you'd set the counter back to zero,

Some of the scripting sites have sample code for this, but it really depends upon how much access to the mail queues your ISP allows.

Your basic process is..

  1. Determine if accessing the smtp queues or catching email via a client will work best for you.
  2. Determine which emails are undeliverable as of the final server attempt to deliver them. Requires filtering/tracking to id the final attempt. In the example above, seven bounces would indicate it got through on the eighth attempt. Eight bounces would indicate it never got through.
  3. Either change the maillist db or create a new db to include the user id, count of unsuccessful attempts, and date of last unsuccessful mailing. You may also want to check the email headers for the reason and only count certain non-delivery reasons.
  4. About a week after a mailing, reconcile the final bounces with the data base.
    • If the email id has no bounce count in the db, add them
    • If the email id has reached their consecutive bounce limit, zap them from this and the mailing list db.
    • If the email has a bounce count, but is not in this latest batch of undeliverables, zap the bounce count.


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: qtechs
Date Posted: 22 August 2003 at 2:09am

Thanks a lot for the reply...

But I might an Idiot being not able to decode much...

Actually I am lay man , can the ready to use cut and paste script be provided for use...

Thanks once again



Posted By: dpyers
Date Posted: 22 August 2003 at 3:23pm

You may want to check out PostCastServer - turns your pc into an smtp maillist server, loges bounces, etc.

http://www.postcastserver.com/ - http://www.postcastserver.com/

Haven't used it myself, but it looked interesting.



-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net