Issues

Select view

Select search mode

 

No provider for smtp exception using AWS SES

Fixed

Description

I'm all of a sudden getting the following errors when trying to send email. Some emails send fine, others don't. I have over 1K emails stacked up in my mail tasks

"ERROR","Thread-5152211","11/08/2019","18:28:49","","mail;No provider for smtp;javax.mail.NoSuchProviderException: No provider for smtp at javax.mail.Session.getProvider(Session.java:473) at javax.mail.Session.getTransport(Session.java:667) at javax.mail.Session.getTransport(Session.java:648) at lucee.runtime.net.smtp.SMTPConnectionPool$SessionAndTransport.<init>(SMTPConnectionPool.java:165) at lucee.runtime.net.smtp.SMTPConnectionPool.getSessionAndTransport(SMTPConnectionPool.java:56) at lucee.runtime.net.smtp.SMTPClient.createMimeMessage(SMTPClient.java:446) at lucee.runtime.net.smtp.SMTPClient._send(SMTPClient.java:810) at lucee.runtime.spooler.mail.MailSpoolerTask.execute(MailSpoolerTask.java:115) at lucee.runtime.spooler.SpoolerTaskSupport._execute(SpoolerTaskSupport.java:107) at lucee.runtime.spooler.SpoolerEngineImpl.execute(SpoolerEngineImpl.java:590) at lucee.runtime.spooler.SpoolerEngineImpl$TaskThread.run(SpoolerEngineImpl.java:528)

My email config in Lucee is:

this.mailservers =[ { host: 'email-smtp.us-east-1.amazonaws.com' , port: 587 , username: 'xxxxxxxx' , password: 'encrypted:xxxxxxxx' , ssl: false , tls: true , lifeTimespan: createTimeSpan(0,0,1,0) , idleTimespan: createTimeSpan(0,0,0,10) }];

When I try to send a test message for this smtp server, Lucee indicates that the task succeeds with the message: "Test mail has been sent successfully using [ email-smtp.us-east-1.amazonaws.com ]." but the message does not get delivered. The undelivered mail does show up in tasks, and fails again when I try to execute the task manually.

An aside, the problem very specifically started on Oct. 2, which may have coincided with my last Lucee update, but I cannot recall the exact date that I updated so I cannot confirm that the update was the problem. Is there a way for me to determine the last time Lucee was updated to determine if the update caused the problem?

Environment

Windows Server 2016

Attachments

1
  • 15 Jan 2020, 12:37 am

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Original estimate

Time tracking

No time logged

Sprint

Affects versions

Created 8 November 2019 at 20:00
Updated 23 October 2020 at 12:13
Resolved 23 October 2020 at 12:09

Activity

Show:

Zac Spitzer23 October 2020 at 12:13

Excellent!

Michael Offner23 October 2020 at 12:02

i will start with a snapshot for 5.3.7

Zac Spitzer23 October 2020 at 00:40

positive feedback on the mailing list, this has fixed the problems for many people

https://dev.lucee.org/t/email-not-sending-lucee-5-3-5-92/6864/42?u=zac_spitzer

we should backport this to 5.3.7 and do a new release, especially as the installer hasn’t been built yet

Michael Offner20 October 2020 at 08:02

please give the latest Lucee version a try, if the email issues remain

Zac Spitzer19 October 2020 at 19:12

just a quick heads up, the build failed so the 5.3.8.84-SNAPSHOT isn’t available for testing yet

https://travis-ci.org/github/lucee/lucee/builds/737169987

Flag notifications