vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   trying to use Gmail SMTP servers for vB emails, but it's not working (https://vborg.vbsupport.ru/showthread.php?t=211790)

Fangs404 04-21-2009 12:19 AM

trying to use Gmail SMTP servers for vB emails, but it's not working
 
I originally posted this in General, but it wasn't getting any attention, and I can't bump that thread, so I thought I'd put it in here where it probably should've been originally (oops).

I'd like to use Gmail's SMTP server to send all forum emails because we've been having some issues sending emails. A lot of free servers will accept them from our server (like Gmail and Yahoo!), but most school and business email addresses never get the email confirmation sent to them. I figure that using Gmail's SMTP server will fix this, but it's just not working. Here're the settings we're using:

SMTP server: smtp.gmail.com
port: 465
SMTP username: [username]@gmail.com
password: [password]
SMTP secure connection: TLS

When running the diagnostic, there's a delay of about 30 seconds, and then we get this error:

Quote:

Pertinent SMTP Settings
SMTP: tls://smtp.gmail.com:465
SMTP Username: [username]@gmail.com

The mailing function returned an error while trying to send the mail.
The following errors were outputted by PHP when attempting to send mail:

Warning: 0 Unexpected response when connecting to SMTP server in [path]/includes/class_mail.php on line 601
Does anyone have any idea why this is happening?

puertoblack2003 04-21-2009 01:45 AM

Quote:

Originally Posted by Fangs404 (Post 1795624)
I originally posted this in General, but it wasn't getting any attention, and I can't bump that thread, so I thought I'd put it in here where it probably should've been originally (oops).

I'd like to use Gmail's SMTP server to send all forum emails because we've been having some issues sending emails. A lot of free servers will accept them from our server (like Gmail and Yahoo!), but most school and business email addresses never get the email confirmation sent to them. I figure that using Gmail's SMTP server will fix this, but it's just not working. Here're the settings we're using:

SMTP server: smtp.gmail.com
port: 465
SMTP username: [username]@gmail.com
password: [password]
SMTP secure connection: TLS

When running the diagnostic, there's a delay of about 30 seconds, and then we get this error:



Does anyone have any idea why this is happening?


change this
Quote:

SMTP secure connection: TLS

to ssl

Fangs404 04-21-2009 02:27 AM

SSL requires a different port, though. According to http://mail.google.com/support/bin/a...n&answer=13287 I need to use port 995 for SSL. I tried that, and I get the same error.

Any idea?

Dismounted 04-21-2009 08:18 AM

Can you check the mail logs on the server?

puertoblack2003 04-21-2009 10:14 AM

Quote:

Originally Posted by Fangs404 (Post 1795673)
SSL requires a different port, though. According to http://mail.google.com/support/bin/a...n&answer=13287 I need to use port 995 for SSL. I tried that, and I get the same error.

Any idea?


dont understand the error but i have the same setup and its working fine on my board.makes sure you comment out in php.in the openssl extension.

Angel-Wings 04-21-2009 11:15 AM

Quote:

Originally Posted by Fangs404 (Post 1795673)
SSL requires a different port, though. According to http://mail.google.com/support/bin/a...n&answer=13287 I need to use port 995 for SSL. I tried that, and I get the same error.

Any idea?

Hmmm - 995 is POP3 - dunno how you want to use SMTP on a POP3 port ;)

Maybe try a telnet on Gmail's 465 port sending it a HELO to see if SSL is offered or if they only offer TLS / Starttls

Fangs404 04-21-2009 04:20 PM

Quote:

Originally Posted by Angel-Wings (Post 1795887)
Hmmm - 995 is POP3 - dunno how you want to use SMTP on a POP3 port ;)

Maybe try a telnet on Gmail's 465 port sending it a HELO to see if SSL is offered or if they only offer TLS / Starttls

HAHAHA! I can't believe I misread it like that. I just changed it to SSL with port 465, and it worked perfectly. Wow. Thanks for the help guys. It's working!

howcome 05-04-2009 04:33 PM

im having same problem

Dismounted 05-05-2009 04:41 AM

Did you read the responses?

howcome 07-10-2009 04:20 AM

yes but either way it fails i dont get an email


All times are GMT. The time now is 04:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01640 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete