I have created a Send Email event against SLPoItems that retrieves an e-mail value added to a user field called _ATRO_DerPreqAttn. The event is designed to fire an e-mail to the e-mail address specified in _ATRO_DerPreqAttn when a purchase order is received and it works provided the e-mail is a valid address or series of valid addresses separated by ";".
If the SMTP server detects an invalid e-mail, it halts the PO receipt transaction and warns the user. Is there any way to error check this event so that won't happen? If the e-mail is invalid, I'd still like the receiving transaction to finish successfully, and I don't want the user to get an SMTP error message. I just want the e-mail to fail out.
DETAILS OF THE EVENT
IdoPostItemUpdate
Object: SLPoItems
10 - Finish - CONDITION(P("ReqNum") = "NULL" AND P("Stat") <> "F")
RESULT("Stops event")
20 - Send Email -
TO(P("_ATRO_DerPreqAttn"))
SUBJECT("Test with e-mail")
HTMLFORMAT(FALSE)
BODY("Testytest")