Customer Portal

EmailSender ignore send fail

Comments 3

  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    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,
  • Avatar
    hewills
    0
    Comment actions Permalink
    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?
  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    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,

Please sign in to leave a comment.