Hi Isomorphic,
I have a super strange issue, where sending mails via your <mail> tags fails.
This is the exception stack trace (v12.0p_2020-03-11):
In the mail html template I have this line:
The field STATUS_STATUSCOMMENT included user content, and the problem is with this:
As you can see the text of the field is a copied mail in German. Instead of "TO:" it has "An". But "CC" is the same in German / English.
Is it somehow possible that because of the way you try to build the mail in TemplatedMailMessage.java:260 the content is somehow interpreted as header further down the line and this "CC: ..." is not valid? (";" in HTML-encoded content for "<" etc.).
When I add customSelectExpression="null" in the .ds.xml for the STATUS_STATUSCOMMENT-field, and by this remove the content from the mail, the mail sending succeeds.
Thank you & Best regards
Blama
I have a super strange issue, where sending mails via your <mail> tags fails.
This is the exception stack trace (v12.0p_2020-03-11):
Code:
javax.mail.internet.AddressException: Illegal semicolon, not in group in string ``Christian <christian.lastname@company.de>'' at position 13 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:863) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:575) at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:107) at com.isomorphic.mail.MailMessage.buildMessage(MailMessage.java:516) at com.isomorphic.mail.TemplatedMailMessage.buildMessage(TemplatedMailMessage.java:260) at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:3323) at com.lmscompany.lms.server.sendmail.RecurringMailsSender.processMailJob(RecurringMailsSender.java:112) at com.lmscompany.lms.server.sendmail.RecurringMailsSender.sendDueMails(RecurringMailsSender.java:50) at com.lmscompany.lms.server.sendmail.SendMailProcess.sendMails(SendMailProcess.java:12) at com.lmscompany.lms.server.jobs.SendMailJob.execute(SendMailJob.java:54) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Code:
<td>$!esc.html($lead.STATUS_STATUSCOMMENT)</td>
Code:
Von: otherLN, otherGN <otherGN.otherLN@company.de> Gesendet: Montag, 5. Juli 2021 19:15 An: Vertrieb <vertrieb@company.de> Cc: Lastname, Christian <christian.lastname@company.de> Betreff: WG: xxx Hallo Frau xxx, ... ...
Is it somehow possible that because of the way you try to build the mail in TemplatedMailMessage.java:260 the content is somehow interpreted as header further down the line and this "CC: ..." is not valid? (";" in HTML-encoded content for "<" etc.).
When I add customSelectExpression="null" in the .ds.xml for the STATUS_STATUSCOMMENT-field, and by this remove the content from the mail, the mail sending succeeds.
Thank you & Best regards
Blama
Comment