dhruv_x0
14th May 2012, 14:20
Dear Gurus,
I write a script which will execute as a job on daily basis. Script is for sending payment advise report as an attachment to the supplier.A batch file is generated and executed on cmd. I am using SMTP (BLAt Utility) to send mail. Now i need an exception report to track which mail has been sent from the server and which has n't.
Is there any way to track the mails?????
Suggestions are welcomed.
Regards
Anmol
avpatil
14th May 2012, 20:42
Can you check the Blat log?
Arvind Patil
dhruv_x0
15th May 2012, 08:36
Dear Arvind,
If i generate a log file, it gives me information about the send and unsend mails.
But i need to store suppose(Payment Batch No) in a file for the mails which is not sent by server.
Now i didn't get any error during program execution so how to track those advises which are not sent.
Regards
Anmol Sharma
rrocks23
21st May 2012, 14:03
Hi,
You mite b getting a return value for the command.On that basis u can create a log.
:)
avpatil
21st May 2012, 15:08
Hi Dhruv,
Normally when you send email you might create subject that is unique (like payment batch etc, and you can read the log file back with that subject.
Arvind
norwim
11th June 2012, 17:02
Hi there,
First thing is quite easy, simply cc the email to a special account of your own.
Then you can check this email-account (for instance with a php-script) whether the copy has arrived.
But to exclude an error in the recipients e-mail adress, you would have to locate the email that has been produced by the system informing you that the outgoing email couldn't be delivered.
If for example the recipient's domain does exist but there is no smtp daemon running, then the informational email that the mail couldn't be processed may arrive several days later!
What about the logfile of your mailserver? Can't you find info there whether sending was succesful?
regards
Norbert