• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFMail Issues since Upgrading to CF10

Guest
Mar 13, 2013 Mar 13, 2013

Copy link to clipboard

Copied

Ever since upgrading to CF10, we've been having some odd issues with our automated ColdFusion emails.  The processes always functioned properly in the past, but lately we've been getting some very out of the ordinary issues which I'll describe further below.

We discover the problem usually from contacts who usually receive these emails on a daily basis with or without attachments.  We'll go to the CFMAIL directory for the corresponding server and find a slew of emails stuck in the 'Undelivr' emails.  In some cases, we can just move these emails to the Spool folder and they process fine, but in most cases they result in one of the two errors below:

Error 1: In an email which normally does not contain a body and contains an attachment, the follow error is what we found in the logs:

-----------------

"Error","scheduler-1","01/15/13","14:09:56",,"javax.mail.MessagingException: missing body for message"

javax.mail.MessagingException: missing body for message

                at coldfusion.mail.MailImpl.createMessage(MailImpl.java:696)

                at coldfusion.mail.MailSpooler.deliver(MailSpooler.java:1295)

                at coldfusion.mail.MailSpooler.sendMail(MailSpooler.java:1197)

                at coldfusion.mail.MailSpooler.deliverFast(MailSpooler.java:1657)

                at coldfusion.mail.MailSpooler.run(MailSpooler.java:1567)

                at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:211)

                at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)

-----------------------

Placing these emails that have always been sent out this way in the past without an attachment in the spool directory causes it to go right back in the 'Undelivr' folder and resulting in the same error.  We ended up having to modify the email file and add random content in the body message, place it back in the spool directory, and it went through.  - Mind boggling.

Error 2:

------------------

"Error","scheduler-2","02/04/13","09:08:17",,"javax.mail.MessagingException: Exception reading response;   nested exception is:java.net.SocketException: Connection reset"

Both errors occur randomly and we have not been able to find out what causes them randomly from time to time.  All other emails go through fine, but certain emails will never go out and end up in the 'Undelivr' folder. 

We are running them on Windows Server 2008 64bit.

Views

1.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 14, 2013 Mar 14, 2013

Copy link to clipboard

Copied

If any of the addresses on your email are invalid, the email will bounce into the Undelivr folder with no one on the email distribution getting anything. Try adding

-Dmail.smtp.sendpartial=true

to your JVM arguments to send the email to the valid addresses anyway. This fix will send the email to the valid addresses, but may not fix your Undelivr mail folder problem. You may want to add code to validate all your email addesses somehow at the time you generate the emails.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 14, 2013 Mar 14, 2013

Copy link to clipboard

Copied

Peter, thanks for your suggestions however, the receipients in our email are either customers or internal users; which in any of the email issues we've been having, an invalid email address was not the cause.  Also, to note - these are not marketing emails.

Just standard batch notification emails, e.g., order / warehouse notification, daily automated processes, etc.  I do wish it were something that simple to resolve these email issues once and for all.

One other possible cause I've been looking at is "TCP/IP Port Exhaustion" - More info here http://msdn.microsoft.com/en-us/library/aa560610%28v=bts.10%29.aspx

However, not sure how to exactly prove this to be the cause. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 12, 2013 Jun 12, 2013

Copy link to clipboard

Copied

LATEST

Hello,

Still experiencing these issues from time to time, specifically the "javax.mail.MessagingException: missing body for message" mail error.  The only way to get these emails to spool and go out is manually editing the mail file to include a body.  What I don't understand is why CF / Java is requiring a body where as previously we can send it out just fine without body content.  Again, the times these happen are random and I haven't been able to figure out a pattern or what the possible cause is.  Would appreciate any advice on this, thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation