Email Sending Failure: SMTPSendFailedException: 500 5.5.2 Error: bad UTF-8 syntaxDescription: If the outbound emails are failing to be sent and if the emails logs have message like "500 5.5.2 Error: bad UTF-8 syntax" then one possible reason could be that there are unwanted space or character added to the email header like in the 'From' or the 'Reply to' section which is picked by the instance based on the values configured in the Email account "sys_email_account" table. 2024-03-07 12:31:17 (445) worker.6 worker.6 txid=e05fa3a57b86 WARNING *** WARNING *** EMAIL.df3f63a5973886109b83b0e3a253afbd: 500 5.5.2 Error: bad UTF-8 syntax 2024-03-07 12:31:17 (437) worker.6 worker.6 txid=e05fa3a57b86 WARNING *** WARNING *** email.df3f63a5973886109b83b0e3a253afbd: SMTP Server returned error code 500. Email will not be sent 2024-03-07 12:31:17 (437) worker.6 worker.6 txid=e05fa3a57b86 WARNING *** WARNING *** handling smtp exception: com.sun.mail.smtp.SMTPSendFailedException: 500 5.5.2 Error: bad UTF-8 syntax Below is an example , by referring to the email log that was failed to be sent , it had a warning like "500 5.5.2 Error: bad UTF-8 syntax" , reviewing the email header further reveled that there was an additional space in the 'From' value of the email like < XXXservicedesk@abc.com> instead of having like <XXXservicedesk@abc.com> Solution: Navigate to the "sys_email_account" table , open the active SMTP account which is configured to send the outbound email, review if there are and additional or unwanted space in front of the value stored in the 'From' field and ensure that it is saved with the correct value and then try resending the email. Additional Information: - If there are no additional spaces in the From, Reply to, Recipient value of an email yet if the instance returns an error "500 5.5.2 Error: bad UTF-8 syntax", then it could be that there are non-UTF-8 characters used in the email body causing the error.- Enabling debug mode on the email server and reviewing logs during the occurrence can help identify the root cause.