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

  • Home
  • SEARCH
  • 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 8708339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:06:42+00:00 2026-06-13T04:06:42+00:00

When i try to send emails from my phpmailer class, it returns true, but

  • 0

When i try to send emails from my phpmailer class, it returns true, but in the Directadmin mail log it logs a TimeOut.

2012-10-21 14:22:14 1TPsca-0000t7-Vj gmail-smtp-in.l.google.com
[2a00:1450:4013:c01::1a] Connection timed out

2012-10-21 14:22:14 1TPsca-0000t7-Vj => [Email]
F=<[Email]> R=lookuphost T=remote_smtp S=3286
H=gmail-smtp-in.l.google.com [74.125.136.26] X=TLSv1:RC4-SHA:128
C=”250 2.0.0 OK 1350822120 f43si4569491eem.30″

2012-10-21 14:22:14 1TPsca-0000t7-Vj Completed

but the email dont got send.

How can i fix this?

Thanks!
Wouter0100

  • 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-06-13T04:06:44+00:00Added an answer on June 13, 2026 at 4:06 am

    Connection time-out means the mail server cannot be reached anymore. If the mail server is different from your web server (i.e. not localhost) I’d check with your hosting provider whether they enabled some sort of firewall that blocks connections on the SMTP port

    The error that you are receiving means that the connection is failing on this line: SMTP.Connect().

    Usually, it means the port is wrong, the server is not up, or you don’t have connectivity.

    In this case, you don’t have connectivity, most likely because your ISP is blocking connection to that remote port.

    Try sending the email from your hosted web server.

    Even if you could connect, your code won’t work as is. Port 465 on Google’s SMTP server requires a secure (SSL) connection. You’ll still need to implement that.

    Gmail’s SMTP server requires SSL if I recall correctly.
    try this

    $this->Email->smtpOptions = array(
    'port'=>'465', 
    'timeout'=>'30',
    'host' => 'ssl://smtp.gmail.com',
    'username'=>'your_username@gmail.com',
    'password'=>'your_gmail_password',
    );
    

    also
    Read support.google.com/mail/bin/answer.py?hl=en&answer=13287 – SSL must be used to use the GMail SMTP server. Quote: “If your client does not support SMTP4 authentication, you won’t be able to send mail through your client using your Gmail address.”

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

Sidebar

Related Questions

When i try to send email using PHPMailer class I get this error :
I am using gmail smtp to send emails from my website, but i noticed
I'm trying to send emails from CakePHP but without success. I'm trying with CakeEmail
i have downloaded Swift Mailer from their website and try to send simple email
Hello i' ve this problem with unicode emails, when i try to send words
I try to send an email, but I have a problem, however, I found
I'm working with Perl on Windows. I will try to send mail with Email::Sender
I try to send a request to my server via GET, but qooxdoo sends
I am trying to use phpmailer to send out a newsletter, but I keep
I am trying to send notification emails(which is working fine) but have added the

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.