Weird mail issues in Lucee 4.5 & 5

I’m having odd mail issues and looking for troubleshooting suggestions or
possible resolutions.

Using exactly the same mail settings in admin/web.cfm, two different errors
Mail settings as shown:

https://lh3.googleusercontent.com/-Y2pImVB0pZg/Vyizx8eVVJI/AAAAAAAAAzQ/JIK570668oMj-ReU4dJCrgpu1G07tqOagCLcB/s1600/lucee%2Bmail%2Bsettings.PNG

On my dev box (Lucee 5.0.0.235-RC Windows 8.1 running on the bundled Tomcat
install), when sending mail, I get:
smtp.gmail.com Unrecognized SSL message, plaintext connection?
lucee.runtime.exp.NativeException: Unrecognized SSL message, plaintext
connection? at
sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) at

I had 4.5.2.018 on my dev machine until yesterday with the same error. I
upgraded to v5 in hopes that it would resolve this.

On my hostek box (Lucee 4.5.2.018 on Windows Server 2012 R2 running on
hostek’s variant of the Tomcat install), when sending mail, I get:
smtp.gmail.com Exception reading response; nested exception is:
java.net.SocketException: Connection reset at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1407):1407
at …

No luck from hostek’s support team thus far.

Code snippet:

mail
  subject="Contact Us Submission"
  from=form.email
  replyto=form.email
  to=form.selectDepartment
  usessl="true"
  usetls="false"
  type="html"
  {
    writeOutput("<b>From:</b> " & form.name & "<br>");
    writeOutput("<b>Phone:</b> " & form.phone_number & "<br>");
    writeOutput("<b>Email:</b> " & form.email & "<br>");
    writeOutput("<b>Message:</b><br>");
    writeOutput(form.your_message);
  };

How would you troubleshoot or resolve this?

Couple of things to try…

Google lists port 587 as STARTTLS, so try unticking “SSL” and only having
TLS ticked in the configuration.

If that doesn’t work, try port 465 with SSL and TLS ticked as Google list
that as “SSL/TLS”.

Might not help, but worth a try. I know I had issues around what should and
shouldn’t be ticked with AWS SES a couple of years ago.

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.orgOn 3 May 2016 at 15:32, Travis Peters <@Travis_Peters> wrote:

I’m having odd mail issues and looking for troubleshooting suggestions or
possible resolutions.

Using exactly the same mail settings in admin/web.cfm, two different errors
Mail settings as shown:

https://lh3.googleusercontent.com/-Y2pImVB0pZg/Vyizx8eVVJI/AAAAAAAAAzQ/JIK570668oMj-ReU4dJCrgpu1G07tqOagCLcB/s1600/lucee%2Bmail%2Bsettings.PNG

On my dev box (Lucee 5.0.0.235-RC Windows 8.1 running on the bundled
Tomcat install), when sending mail, I get:
smtp.gmail.com http://smtp.gmail.com Unrecognized SSL message,
plaintext connection? lucee.runtime.exp.NativeException: Unrecognized SSL
message, plaintext connection? at
sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) at

I had 4.5.2.018 on my dev machine until yesterday with the same error. I
upgraded to v5 in hopes that it would resolve this.

On my hostek box (Lucee 4.5.2.018 on Windows Server 2012 R2 running on
hostek’s variant of the Tomcat install), when sending mail, I get:
smtp.gmail.com http://smtp.gmail.com Exception reading response; nested
exception is: java.net.SocketException: Connection reset at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1407):1407
at …

No luck from hostek’s support team thus far.

Code snippet:

mail
  subject="Contact Us Submission"
  from=form.email
  replyto=form.email
  to=form.selectDepartment
  usessl="true"
  usetls="false"
  type="html"
  {
    writeOutput("<b>From:</b> " & form.name & "<br>");
    writeOutput("<b>Phone:</b> " & form.phone_number & "<br>");
    writeOutput("<b>Email:</b> " & form.email & "<br>");
    writeOutput("<b>Message:</b><br>");
    writeOutput(form.your_message);
  };

How would you troubleshoot or resolve this?


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/4db30c4e-f104-40ca-b929-eeea679e22a1%40googlegroups.com
https://groups.google.com/d/msgid/lucee/4db30c4e-f104-40ca-b929-eeea679e22a1%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Oh and with the error on 4.5.2.018, I would say it is because the “optional
step” here:

http://lucee.org/blog/lucee-4-5-2-stable-release.html

Needs applying to that box.

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.orgOn 3 May 2016 at 15:42, Andrew Dixon <@Andrew_Dixon> wrote:

Couple of things to try…

Google lists port 587 as STARTTLS, so try unticking “SSL” and only having
TLS ticked in the configuration.

If that doesn’t work, try port 465 with SSL and TLS ticked as Google list
that as “SSL/TLS”.

Might not help, but worth a try. I know I had issues around what should
and shouldn’t be ticked with AWS SES a couple of years ago.

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.org

On 3 May 2016 at 15:32, Travis Peters <@Travis_Peters> wrote:

I’m having odd mail issues and looking for troubleshooting suggestions or
possible resolutions.

Using exactly the same mail settings in admin/web.cfm, two different
errors
Mail settings as shown:

https://lh3.googleusercontent.com/-Y2pImVB0pZg/Vyizx8eVVJI/AAAAAAAAAzQ/JIK570668oMj-ReU4dJCrgpu1G07tqOagCLcB/s1600/lucee%2Bmail%2Bsettings.PNG

On my dev box (Lucee 5.0.0.235-RC Windows 8.1 running on the bundled
Tomcat install), when sending mail, I get:
smtp.gmail.com http://smtp.gmail.com Unrecognized SSL message,
plaintext connection? lucee.runtime.exp.NativeException: Unrecognized SSL
message, plaintext connection? at
sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) at

I had 4.5.2.018 on my dev machine until yesterday with the same error.
I upgraded to v5 in hopes that it would resolve this.

On my hostek box (Lucee 4.5.2.018 on Windows Server 2012 R2 running on
hostek’s variant of the Tomcat install), when sending mail, I get:
smtp.gmail.com http://smtp.gmail.com Exception reading response;
nested exception is: java.net.SocketException: Connection reset at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1407):1407
at …

No luck from hostek’s support team thus far.

Code snippet:

mail
  subject="Contact Us Submission"
  from=form.email
  replyto=form.email
  to=form.selectDepartment
  usessl="true"
  usetls="false"
  type="html"
  {
    writeOutput("<b>From:</b> " & form.name & "<br>");
    writeOutput("<b>Phone:</b> " & form.phone_number & "<br>");
    writeOutput("<b>Email:</b> " & form.email & "<br>");
    writeOutput("<b>Message:</b><br>");
    writeOutput(form.your_message);
  };

How would you troubleshoot or resolve this?


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/4db30c4e-f104-40ca-b929-eeea679e22a1%40googlegroups.com
https://groups.google.com/d/msgid/lucee/4db30c4e-f104-40ca-b929-eeea679e22a1%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

for port 587 + use TLS, you need to allow that Google User to use ‘Less
secure apps’
https://www.google.com/settings/security/lesssecureappsOn Tuesday, May 3, 2016 at 10:32:10 AM UTC-4, Travis Peters wrote:

I’m having odd mail issues and looking for troubleshooting suggestions or
possible resolutions.

Using exactly the same mail settings in admin/web.cfm, two different errors
Mail settings as shown:

https://lh3.googleusercontent.com/-Y2pImVB0pZg/Vyizx8eVVJI/AAAAAAAAAzQ/JIK570668oMj-ReU4dJCrgpu1G07tqOagCLcB/s1600/lucee%2Bmail%2Bsettings.PNG

On my dev box (Lucee 5.0.0.235-RC Windows 8.1 running on the bundled
Tomcat install), when sending mail, I get:
smtp.gmail.com http://smtp.gmail.com Unrecognized SSL message,
plaintext connection? lucee.runtime.exp.NativeException: Unrecognized SSL
message, plaintext connection? at
sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) at

I had 4.5.2.018 on my dev machine until yesterday with the same error. I
upgraded to v5 in hopes that it would resolve this.

On my hostek box (Lucee 4.5.2.018 on Windows Server 2012 R2 running on
hostek’s variant of the Tomcat install), when sending mail, I get:
smtp.gmail.com http://smtp.gmail.com Exception reading response; nested
exception is: java.net.SocketException: Connection reset at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1407):1407
at …

No luck from hostek’s support team thus far.

Code snippet:

mail
  subject="Contact Us Submission"
  from=form.email
  replyto=form.email
  to=form.selectDepartment
  usessl="true"
  usetls="false"
  type="html"
  {
    writeOutput("<b>From:</b> " & form.name & "<br>");
    writeOutput("<b>Phone:</b> " & form.phone_number & "<br>");
    writeOutput("<b>Email:</b> " & form.email & "<br>");
    writeOutput("<b>Message:</b><br>");
    writeOutput(form.your_message);
  };

How would you troubleshoot or resolve this?