Go Back   vb.org Archive > Community Discussions > Forum and Server Management

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2009, 01:19 AM
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 04-21-2009, 02:45 AM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fangs404 View Post
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
Reply With Quote
  #3  
Old 04-21-2009, 03:27 AM
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 04-21-2009, 09:18 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you check the mail logs on the server?
Reply With Quote
  #5  
Old 04-21-2009, 11:14 AM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fangs404 View Post
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.
Reply With Quote
  #6  
Old 04-21-2009, 12:15 PM
Angel-Wings's Avatar
Angel-Wings Angel-Wings is offline
 
Join Date: Sep 2007
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fangs404 View Post
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
Reply With Quote
  #7  
Old 04-21-2009, 05:20 PM
Fangs404 Fangs404 is offline
 
Join Date: Oct 2008
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Angel-Wings View Post
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!
Reply With Quote
  #8  
Old 05-04-2009, 05:33 PM
howcome howcome is offline
 
Join Date: Jun 2008
Location: New York
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im having same problem
Reply With Quote
  #9  
Old 05-05-2009, 05:41 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you read the responses?
Reply With Quote
  #10  
Old 07-10-2009, 05:20 AM
howcome howcome is offline
 
Join Date: Jun 2008
Location: New York
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes but either way it fails i dont get an email
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09014 seconds
  • Memory Usage 2,257KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete