Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Document Send Extension: Error Trapping

Status
Not open for further replies.

SupaFlyBoy

Programmer
Mar 28, 2012
1
0
0
ZA
Where can I trap a SMTP error when sending emails with the document send extension? I take the emails from a SQL database used for the clients financial system so I don't have control over how the users enter email addresses. What happens is that they enter 2 email addresses for one customer split with a ';' which returns an error in my program when I try to send emails to the customers.

error: SMTP Error: RCPT TO:->501 5.1.3 invalid address

I would like to catch the error and post it to a log file with the customers details so that we know which customer's emails failed. I have tried a few different ways of trapping errors but none have worked so far. I have not worked much with the document send extension.

Any help will be appreciated. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top