Page 1 of 1

email SMTP error checking

Posted: Sun Feb 10, 2008 4:38 am
by griffo
I have been able to use the email via SMTP very easily, but wonder if there is any errorchecking that I may access.

i.e. if the email fails to send, then I would like to create the physical PDF file in say, the users MyDocs folder.

Failure may be due to such things as - No network/internet connection.
or some router / firewall blockage.

Any ideas?


Posted: Mon Feb 11, 2008 4:28 pm
by John - Tracker Supp
Hi John,

If you have our PDF-Xchange PRO SDK - you also have access to SMTOP/MAPI send options via our Library functions as available in the NETLIB library - please see the doc's for more info.


Posted: Tue Feb 12, 2008 12:16 am
by griffo
Thanks John

I found the NETLIB docs and am studying them now. Looks like what I want is in there :)

Nope. Cant find a way to set the Date field within an email header.
When using SMTP from within the driver, there is no field for setting the date and NetLib also does not seem to set it.
This is a problem when the SMTP Server is not set to optionally add the date data if it is blank.
Leaving it blank can increase the chance that the SendTo email server/client will see the email as junk.

Studying the netlib36.INC and netlib36.CLW dont mention the Date property.
I tried a few 'experiments' with the example but had no success.

Posted: Tue Feb 12, 2008 12:37 pm
by John - Tracker Supp
Hi John,

We will add the date function in a future release - however when using the netlib library directlly, you can use functions:

NXC_Mail_SetHeaderA or NXC_Mail_SetHeaderW, to set any field in the email header required.