email parsing automation

Email Parser

Extract data from emails and automate your workflow

The forum is now read only. Please, go to the the main Email Parser website if you need help.
Post here if you experience problems or get unexpected errors.
At the end of my processing routine I have a send mail automated process that runs. Every once in a while, when sending the email, my email server will issue an error message stating that it cannot authenticate the sending user. This is something that happens all the time with our other email clients, it has to do with using Yahoo!/Aabaco business mail (we have been dealing with this issue for years) - it is not an Email Parser issue (just want to be clear on that).

My question is, is there a way to capture or test for the error and log it for review in a log file?

I was thinking I could create an automated process script and call the send from it, and then capture the error if it occurred. But I was wondering if I could use the "after this automated process runs with errors" function to facilitate additional processing if error occurred.
Hello Vanmark,

Yes, you can create a script that sends the email. You have to use the CallAction() method in the script to call the automated process that sends the email:
The exact line is:
Code: Select allCallAction("Send email", email, fields);
If you want to try to send email, for example, three times and wait a second between retries you can do this:
Code: Select all // loop three times for (int i = 0; i < 3; i++) { // Send the email and save the result bool result = CallAction("Send email", email, fields); if (result) // send email succeded. break the for loop break; else // send email failed. wait 1000 milliseconds System.Threading.Thread.Sleep(1000); }
The automated processes need to be connected like this:
send_email_retrying.jpg (14.95KiB)Viewed 697 times
The configuration file is attached to this post. You can load it just dropping the file in the Email Parser left panel

My question is, is there a way to capture or test for the error and log it for review in a log file?
Yes, you can also create an automated process of type "Write to text file" that runs only if the automated process "send email" fails.
(1.36KiB)Downloaded 206 times