Control-M/Server is displaying the email notification was performed successfully:
15:01:11 09/09/2019 EMAIL TO email_account@domain PERFORMED 5140
but emails are not being received and when enabling debug in java for email, the p_ctmce*.out logs show error like this
============================
Wed Sep 18 15:49:01 PYT 2019: Setting levels of logger 'com.bmc.ctms.infra.SendMail' to: memory=FINER, file=INFO
javax.mail.internet.AddressException: Local address contains control or whitespace in string ``'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1213)
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:1091)
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:633)
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111)
at com.bmc.ctmem.JavaMailWrapper.SendMail(JavaMailWrapper.java:312)
at com.bmc.ctms.infra.SendMail.send(SendMail.java:46)
============================
Control-M/Server is not sending emails via Java and U_CTMMAIL logs in the proclog directory show errors like the following: 0911 06:13:50.074 U_CTMMAIL64619334: CM_IPC_ce_command: CM_IPC_ce_command: CE request [send "<CTM HOME>/ctm_server/tmp/50S7ma.50S7ma.64619334" "<CTM HOME>/ctm_server/ tmp/50S7mb.50S7mb.64619334" "<CTM HOME>/ctm_server/tmp/NS_5701645697037898118.txt"] failed. rc = 30 When enabling debug in java for email, the p_ctmce*.out log file will show java errors like below: ===================== [Fatal Error] :1:2053: An invalid XML character (Unicode: 0x16) was found in the element content of the document. com.sun.mail.smtp.SMTPSendFailedException: [EOF] at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2108) at com.sun.mail.smtp.SMTPTransport.data(SMTPTransport.java:1876) javax.mail.MessagingException: Can't send command to SMTP host; nested exception is: java.net.SocketException: Invalid argument at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2157) at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2144) ===================== To enable debug in java for email to gather more details, do the following: 1. On Control-M/Server, edit the file <CTM HOME>/ctm_server/data/mail.properties.default by removing the comment symbol in line: mail.debug=true 2. Rename file mail.properties.default to mail.properties 3. Then run command "dbglvl CE 4 0" 4 Run command : "dbglvl TR 4 0" 5. Duplicate the email failure and in the ctm_server/proclog directory look for a file p_ctmce*.out , TRxxx files and search for the above errors 6. Disable debug by reverting the changes in step 1 and 2, and run the command dbglvl ALL 0 0 |