Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3760100
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:25:10+00:00 2026-05-19T10:25:10+00:00

it seems i have tried the mail config in the way that its docs

  • 0

it seems i have tried the mail config in the way that its docs said, but still i get:

Error 500: Executing action [x] of controller [x] caused exception: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP 

I am using google apps for my email – me@dogself.com is using gmail. i cannot get grails to send out a test message on my dev box (win 7).

my config is:

   host = "smtp.gmail.com"
   port = 465
   username = "autoresponse@dogself.com"
   password = "x"
   props = ["mail.smtp.auth":"true",
            "mail.smtp.debug":"true",
            "mail.smtp.starttls.enable":"true",
            "mail.smtp.socketFactory.port":"465",
            "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
            "mail.smtp.socketFactory.fallback":"false"]

edit:
do i need to have some sort of a signed key to support ssl connection to gmail?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T10:25:10+00:00Added an answer on May 19, 2026 at 10:25 am

    Try the following:

    props = ["mail.transport.protocol":"smtps",
             "mail.smtps.host":"smtp.gmail.com",
             "mail.smtps.port":"465",
             "mail.smtps.auth":"true"]
    

    That seems to be the standard set of params necessary to connect to Google’s SMTP server. The key thing is to use smtps instead of smtp plus TLS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried multiple variations of the following code, but I still get the
I have tried the following but it seems the folder gets created on the
I have tried many permutations but they all don't seems to work well. Am
Yes, I have searched and tried many techniques, but nothing seems to work. Here
I have an application that uses SmtpClient to send E-Mail, but the E-Mails are
I have tried this a few different ways and it always seems to fail.
I have tried quite a few codes but none of them seem to work
I have tried to look everywhere for a solution but I can't seem to
I can't seem to get any mouse clicks in a QTreeWidget. I have tried...
I have a script that goes into Fedex Billing each week when they mail

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.