EmailSender ignore send fail

Support/help with CloverETL implementation problems

hewills
Posts: 18
Joined: Tue Apr 18, 2017 4:18 pm
Location: CA

EmailSender ignore send fail

Postby hewills » Fri Feb 09, 2018 5:34 pm

Does the "ignore send fail" option in the EmailSender mean that, when set to true, if the EmailSender fails, the graph stops?
And if set to false, the graph just fails, is that correct?

Thanks

bartonv
Posts: 79
Joined: Wed May 03, 2017 12:10 pm

Re: EmailSender ignore send fail

Postby bartonv » Mon Feb 12, 2018 3:04 pm

Hi Hewills,
if the ‘Ignore send fail’ property of the EmailSender component is set to ‘false’ (by default), the whole graph execution will fail in case an email sending fails. If it is set to ‘true’, the graph execution will continue despite a failed email sending.
For instance, let’s assume that a graph is designed to send out 5 different emails, each one with a different attachment. The second email carries an oversized attachment so the email sending will fail. If ‘Ignore send fail = false’, Clover will send out the first email and then the graph execution will fail after attempting to send the second one (without success). If ‘Ignore send fail = true’, Clover will send out the first email, then it will attempt to send the second one (but without success). However, Clover will go on to send the third, fourth and fifth email and the graph will finish successfully.
The explanation in our documentation appears to be a bit misleading so I will have this corrected.
Kind regards,
---
Vladimir Barton
CloverCARE Support
CloverETL | Rapid Data Integration

Visit us online at http://www.cloveretl.com
How to speed up communication with CloverCARE support

hewills
Posts: 18
Joined: Tue Apr 18, 2017 4:18 pm
Location: CA

Re: EmailSender ignore send fail

Postby hewills » Tue Feb 13, 2018 6:41 pm

Thank you, that's what I thought. I had an occurrence where our smtp server went down, so the EmailSender within our graph couldn't connect and failed. Even though I had this setting as "true", the graph ended with a status other than 'FINISHED_OK', because of the EmailSender failure. But maybe this setting won't work for certain types of failures?

bartonv
Posts: 79
Joined: Wed May 03, 2017 12:10 pm

Re: EmailSender ignore send fail

Postby bartonv » Fri Feb 23, 2018 9:43 am

Hello Hewills,
as you rightly said, the ‘Ignore send fail’ property only applies to certain types of failures. The designed logic of this property in the code is applied only after a successful connection to the SMTP server is established. Therefore, if the connection is not established successfully, the graph will fail regardless of this property settings. To put it simply, the ‘Ignore send fail’ property would have effect, for example, if an email cannot be sent due to an oversized attachment but it would not gave effect, for example, when the SMTP server is not working, or incorrect credentials are used.
Regards,
---
Vladimir Barton
CloverCARE Support
CloverETL | Rapid Data Integration

Visit us online at http://www.cloveretl.com
How to speed up communication with CloverCARE support