Options

testing the smtp connection

Hi all
I have a job running through som sub-jobs (among other, posting invoices) and at the end it calls a codeunit sending an e-mail with invoice as PDF-attachm.
If internet connection is lost all jobs has been done, but the mail is missing.
How do I check whether I have connection to the SMTP server before running the jobs rather than having the server-fault at the end?

Best Answer

Answers

Sign In or Register to comment.