Hello folks,
In the production environment, I am facing an issue with sending emails. The email is received by the customer, but after that, the 'send mail' action encounters an exception or error with the message: '-' is not a valid email address.(There is no any error msg like this in logic level) As a result, all the updated operations are reverted.
Note: It works fine in the lower environment, and it is not possible to share the OML.
Hi @Venkatesaiya ,
Have you tried using the below function ?
EmailAddress_Validate()
No Sivasakthi
Hi @Venkatesaiya,
This seems like data issue. Have you check the email is passing is correctly or not. Add appropriate log message and check if EmailId value is not null. As a result, due to this exception all the upcoming actions are rolled back. Add commit transaction after send email action to avoid this.
The message is clear: '-' is not a valid email address. You are sending '-' where an email address is expected.
You have to check the customer data and fix any missing address (To, CC, BCC). Check also your settings in case it is happening in the "From".
Also, if the email is not a priority, you can commit the transaction and handle the exception to delay the email issue for later without affecting the main action part.
@Venkatesaiya, you are saying that email is received by the customer which have - (dash) in his/her email and after that you are getting exception ?