Follow up to SMTP module + gmail issue, drupal 5.0 and 5.1
| Project: | SMTP Authentication Support |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Drupal 5.0
Configuration file Protected
Cron maintenance tasks Last run 14 min 15 sec ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.28 compatible)
MySQL database 5.0.27
PHP 5.2.0
Unicode library Standard PHP
Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.
Web server Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0
First question is, is the "HEAD" version for drupal 5.0?
Here's the issue:
When I submit the configuration for the SMTP module it holds the information it seems. However when I ask for a test e-mail and press submit the page loads up blank. I then refresh and it just says "configuration saved" and nothing about a test e-mail.
I'm using a gmail smtp address with port 465. I have SSL installed so hopefully it should work.
I'm thinking the SMTP module is having issues holding the information for the servers or something.
The blank page has no source to it at all. Its completely empty.
Errors are coming up in my apache log:
Tue Jan 16 18:06:03 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Web Server\\xampp\\htdocs\\modules\\smtp\\smtp.module on line 2771, referer: http://localhost/?q=admin/settings/smtp
[Tue Jan 16 18:06:03 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Web Server\\xampp\\htdocs\\includes\\session.inc on line 56, referer: http://localhost/?q=admin/settings/smtp
[Tue Jan 16 18:06:03 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Web Server\\xampp\\htdocs\\includes\\session.inc on line 14, referer: http://localhost/?q=admin/settings/smtp
[Tue Jan 16 18:11:39 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Web Server\\xampp\\htdocs\\modules\\smtp\\smtp.module on line 2771, referer: http://localhost/?q=admin/settings/smtp
[Tue Jan 16 18:11:39 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Web Server\\xampp\\htdocs\\includes\\session.inc on line 56, referer: http://localhost/?q=admin/settings/smtp
[Tue Jan 16 18:11:39 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Web Server\\xampp\\htdocs\\includes\\session.inc on line 14, referer: http://localhost/?q=admin/settings/smtp
[Tue Jan 16 18:21:08 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Web Server\\xampp\\htdocs\\modules\\smtp\\smtp.module on line 2771, referer: http://localhost/?q=admin/settings/smtp
[Tue Jan 16 18:21:08 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Web Server\\xampp\\htdocs\\includes\\session.inc on line 56, referer: http://localhost/?q=admin/settings/smtp
[Tue Jan 16 18:21:08 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Web Server\\xampp\\htdocs\\includes\\session.inc on line 14, referer: http://localhost/?q=admin/settings/smtp
Any ideas what the problem is? Or could be?

#1
To answer your first question, yes, HEAD is for drupal 5.0.
This sounds like a problem with gmail and ssl. I plan to try out the suggestions in this issue http://drupal.org/node/39138 and get it working in the future.
#2
I tried putting in the server ssl://smtp.gmail.com and it comes up with what is below. Also for once it did not give a blank page.
* warning: fsockopen() expects parameter 2 to be long, string given in C:\Web Server\xampp\htdocs\modules\smtp\smtp.module on line 1852.
* warning: fsockopen() [function.fsockopen]: unable to connect to :465 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\Web Server\xampp\htdocs\modules\smtp\smtp.module on line 1852.
It's stopped giving me the weird blank page thing. It's working now in terms of at least giving errors and the like.
I changed it to another server I know of without SSL and its fine.
So at least its working for e-mail now.
#3
Grab the the latest HEAD and try the new ssl option. Let me know if it works.
#4
#5
I can check it for you tomorrow. :)
#6
Server: smtp.gmail.com
With SSL:
Port: 446
Error sending email: "SMTP Error: Could not connect to SMTP host." From: "sheffield.uncensored@gmail.com" To: "kristinahall.83@gmail.com"
fsockopen() [function.fsockopen]: unable to connect to ssl://:446 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\Web Server\xampp\htdocs\modules\smtp\smtp.module on line 1894.
fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:446 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\Web Server\xampp\htdocs\modules\smtp\smtp.module on line 1894.
With TLS
Port 587
Error sending email: "SMTP Error: Could not connect to SMTP host." From: "sheffield.uncensored@gmail.com" To: "kristinahall.83@gmail.com"
fsockopen() [function.fsockopen]: unable to connect to tls://:587 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\Web Server\xampp\htdocs\modules\smtp\smtp.module on line 1894.
fsockopen() [function.fsockopen]: unable to connect to tls://smtp.gmail.com:587 (Unknown error) in C:\Web Server\xampp\htdocs\modules\smtp\smtp.module on line 1894.
fsockopen() [function.fsockopen]: Failed to enable crypto in C:\Web Server\xampp\htdocs\modules\smtp\smtp.module on line 1894.
fsockopen() [function.fsockopen]: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number in C:\Web Server\xampp\htdocs\modules\smtp\smtp.module on line 1894.
With...
Server: mail.bluebottle.com
Port: 25
Changed the settings to a server that does not use TLS or SSL
Sending from sheffielduncensored@bluebottle.com
* SMTP.module is active.
* The configuration options have been saved.
* SMTP.module is active.
* A test E-mail has been sent to kristinahall.83@gmail.com. You may want to check the logs for any error messages.
Error sending email: "The following From address failed: sheffield.uncensored@gmail.com" From: "sheffield.uncensored@gmail.com" To: "kristinahall.83@gmail.com"
So there is still an issue going on somewhere.
Also when I'm trying to change the e-mail and the server without having changed the e-mail address in "site information" it fails.
When the e-mail address in "site information is changed to match"
* SMTP.module is active.
* The configuration options have been saved.
* SMTP.module is active.
* A test E-mail has been sent to kristinahall.83@gmail.com. You may want to check the logs for any error messages.
Error sending email: "The following From address failed: sheffield.uncensored@bluebottle.com" From: "sheffield.uncensored@bluebottle.com" To: "kristinahall.83@gmail.com"
#7
I realized I typoed the e-mail in site info... Tried it again with correct typing and it gave this
Error sending email: "SMTP Error: The following recipients failed: kristinahall.83@gmail.com" From: "sheffielduncensored@bluebottle.com" To: "kristinahall.83@gmail.com"
#8
Hee.
Now I feel dumb
SSL, gmail. port 465 works. No errors AT ALL and I received e-mail!
#9
Great to hear.
#10
#11
Hello,
I have similar issue as Miss Essence descRibed above and get prety much the same message
Error sending email: "The following From address failed: firstaddress@firstdomain.net" From: "firstaddress@firstdomain.net" To: "pushkar@xxxxx.com".I turned on the DEBUG flag in the module ( var $SMTPDebug = true;) and get the following message (top of the screen)
"SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> ERROR: EHLO not accepted from server: SMTP -> FROM SERVER: SMTP -> ERROR: HELO not accepted from server: SMTP -> ERROR: AUTH not accepted from server: SMTP -> NOTICE: EOF caught while checking if connected"I am using the MAMP setup on OS X
Drupal version 5.1
Port : 465 for GMAIL
Server: smtp.gmail.com
username : firstaddress@firstdomain.net (hosted google apps account)
pwd : the firstaddress@firstdomain.net password
I have enabled POP for the account and can send emails from a regular mail client (mail.app) from "firstaddress@firstdomain.net" To: "pushkar@xxxxx.com".
MySQL database 5.0.19
PHP 5.1.2
Web server Apache/2.0.55 (Unix) PHP/5.1.2 DAV/2 mod_ssl/2.0.55 OpenSSL/0.9.7l
I have not tested this with a non-gmail SMTP server. There are no error logs on apache or php.
I don't see the option of setting up SSL (is this something i need? There is no option on the module setup to enable or force SSL). I dont have sendmail enabled but am hoping that the SMTP module by itself does the trick.
If however I use port 587 for gmail, I see the following error log on the page
SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220 mx.google.com ESMTP h15sm10296325wxd " SMTP -> get_lines(): $data is "220 mx.google.com ESMTP h15sm10296325wxd " SMTP -> FROM SERVER: 220 mx.google.com ESMTP h15sm10296325wxd SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250-mx.google.com at your service, [71.192.72.238] " SMTP -> get_lines(): $data is "250-mx.google.com at your service, [71.192.72.238] " SMTP -> get_lines(): $data was "250-mx.google.com at your service, [71.192.72.238] " SMTP -> get_lines(): $str is "250-SIZE 20971520 " SMTP -> get_lines(): $data is "250-mx.google.com at your service, [71.192.72.238] 250-SIZE 20971520 " SMTP -> get_lines(): $data was "250-mx.google.com at your service, [71.192.72.238] 250-SIZE 20971520 " SMTP -> get_lines(): $str is "250-8BITMIME " SMTP -> get_lines(): $data is "250-mx.google.com at your service, [71.192.72.238] 250-SIZE 20971520 250-8BITMIME " SMTP -> get_lines(): $data was "250-mx.google.com at your service, [71.192.72.238] 250-SIZE 20971520 250-8BITMIME " SMTP -> get_lines(): $str is "250-STARTTLS " SMTP -> get_lines(): $data is "250-mx.google.com at your service, [71.192.72.238] 250-SIZE 20971520 250-8BITMIME 250-STARTTLS " SMTP -> get_lines(): $data was "250-mx.google.com at your service, [71.192.72.238] 250-SIZE 20971520 250-8BITMIME 250-STARTTLS " SMTP -> get_lines(): $str is "250 ENHANCEDSTATUSCODES " SMTP -> get_lines(): $data is "250-mx.google.com at your service, [71.192.72.238] 250-SIZE 20971520 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES " SMTP -> FROM SERVER: 250-mx.google.com at your service, [71.192.72.238] 250-SIZE 20971520 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "530 5.7.0 Must issue a STARTTLS command first h15sm10296325wxd " SMTP -> get_lines(): $data is "530 5.7.0 Must issue a STARTTLS command first h15sm10296325wxd " SMTP -> ERROR: AUTH not accepted from server: 530 5.7.0 Must issue a STARTTLS command first h15sm10296325wxd SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 2.1.0 Flushed h15sm10296325wxd " SMTP -> get_lines(): $data is "250 2.1.0 Flushed h15sm10296325wxd " SMTP -> FROM SERVER: 250 2.1.0 Flushed h15sm10296325wxd SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "530 5.7.0 Must issue a STARTTLS command first h15sm10296325wxd " SMTP -> get_lines(): $data is "530 5.7.0 Must issue a STARTTLS command first h15sm10296325wxd " SMTP -> FROM SERVER: 530 5.7.0 Must issue a STARTTLS command first h15sm10296325wxd SMTP -> ERROR: MAIL not accepted from server: 530 5.7.0 Must issue a STARTTLS command first h15sm10296325wxd SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 2.1.0 Flushed h15sm10296325wxd " SMTP -> get_lines(): $data is "250 2.1.0 Flushed h15sm10296325wxd " SMTP -> FROM SERVER: 250 2.1.0 Flushed h15sm10296325wxdAppreciate any help.
#12
The option to use SSL in the module will only show up if php has access to openssl.
#13
Thanks. is there a quick link to enabling opnssl for PHP?
#14
http://us2.php.net/manual/en/ref.openssl.php
#15
Awesome!!
I asked my webhost to install openSSL and this works beautifully! Thanks Luke. May the force be with you.
:)
#16
I installed WAMP on my localhost. I do not see the SSL option on the SMTP HEAD mod and I'm not sure exactly how to enable the openssl. i've tried to read up on the documentation, but it is quite difficult for me to understand. Can anyone explain in simple terms?
#17
WAMP5 do not support SSL.
Try this : http://www.devside.net
all built-in.
#18
Web-Development and Self Hosting Solutions for Windows - http://www.devside.net/
Core Server
* Apache 2.2 HTTP Server
* MySQL 5.0 Database
* PHP 5.2 and Perl 5.8 Scripting Languages
* GUI WAMP-stack Controller
* Dynamic DNS Service
Applications
* Tomcat Servlet/JSP Container
* mod_aspdotnet ASP.NET Host Interface
* OpenSSL Cryptography Toolkit
* mod_security Web Application Firewall
* phpMyAdmin MySQL Administration
Web Framework
* Joomla
* Drupal
* WordPress
* MediaWiki
* phpBB