24
Views
5
Comments
Email is sent but receive error after email sent
Discussion

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.




2025-02-07 09-54-44
Sivasakthi Munusamy

Hi @Venkatesaiya ,

Have you tried using the below function ?

EmailAddress_Validate()

2024-01-04 09-21-21
Venkatesaiya

No Sivasakthi

2025-12-03 17-22-41
Lavanya Kamalaguru

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.




2016-04-22 00-29-45
Nuno Reis
 
MVP

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.

2022-12-30 07-28-09
Navneet Garg

@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 ?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.