Schedule emails not sending

webtop5
mail

(Mark Albrecht) #1

Is anyone able to have schedule emails send? I could not see on this forum or Webtop forum anyone else having issues.

I schedule emails, they go to Drafts with a icon of a Watch but they do not get sent.

Webtop 5.1.6 - Neth Server 7.4.1708 (All updates applied as of 30-4-2018)

Error message in /var/log/webtop/webtop.log

2018-04-30 07:35:18 [INFO ] c.sonicle.webtop.core.app.WebTopApp - Scheduling JobServices tasks...
2018-04-30 07:35:18 [INFO ] c.sonicle.webtop.core.app.WebTopApp - Created javax.mail.Session for localhost:587
2018-04-30 08:00:00 [ERROR] com.sonicle.webtop.core.JobService - Unable to send email
java.lang.NullPointerException: null
	at com.sun.mail.handlers.text_plain.writeTo(text_plain.java:156)
	at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:889)
	at javax.activation.DataHandler.writeTo(DataHandler.java:317)
	at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:323)
	at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1513)
	at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1125)
	at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:515)
	at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1471)
	at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1125)
	at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:515)
	at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1471)
	at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2190)
	at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2151)
	at javax.mail.Transport.send(Transport.java:123)
	at com.sonicle.webtop.core.app.WebTopApp.sendEmail(WebTopApp.java:1172)
	at com.sonicle.webtop.core.app.WT.sendEmail(WT.java:478)
	at com.sonicle.webtop.core.app.WT.sendEmail(WT.java:464)
	at com.sonicle.webtop.core.JobService$ReminderJob.sendEmail(JobService.java:195)
	at com.sonicle.webtop.core.JobService$ReminderJob.executeWork(JobService.java:148)
	at com.sonicle.webtop.core.sdk.BaseJobServiceTask.execute(BaseJobServiceTask.java:65)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)

(Luca Gasparini) #2

Hi @markareait,
it seems that the scheduling of a mail sending is not working :thinking:
It is likely that this is a bug but I would also like to listen to @gabriele_bulfon opinion first.

In the meantime, do you also want to paste the corresponding log imap?


(gabriele_bulfon) #3

Hi, looks like a problem with the content of the email, causing internal errors in the JavaMail library.
Can you provide us with the eml of the email?
You may right click on the drafts list and select “save email”

Gabriele


(Giacomo Sanchietti) #4

@markareait if the content of the mail is sensitive, feel free to send it as PM to @lucag and @gabriele_bulfon :wink:


(Mark Albrecht) #5

Hi Giacomo, Gabriele and Luca, I have sent as a PM of the eml file and imap log. I have tried messages with only a subject as well with the same result. Thank you for your help…


(gabriele_bulfon) #6

We have verified : that exception has nothing to do with scheduled emails, it’s about some reminder probably coming from the calendar.

We’re taking a look to see what happened.

Gabriele