I have been trying to get email to work on the site for new user confirmations as well as forgotten passwords. I finally got to the point where the website stays live instead of going to a whit e page with errors. Now I at least get errors on the website itself. I have tried my own email server as well as gmail and I am getting the following errors;
* warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/modules/smtp/phpmailer/class.smtp.php on line 122.
* warning: fsockopen() [function.fsockopen]: unable to connect to rgpoelstra@gmail.com:465 (Unknown error) in /var/www/modules/smtp/phpmailer/class.smtp.php on line 122.
* warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/modules/smtp/phpmailer/class.smtp.php on line 122.
* warning: fsockopen() [function.fsockopen]: unable to connect to :465 (Unknown error) in /var/www/modules/smtp/phpmailer/class.smtp.php on line 122.
* Unable to send e-mail. Please contact the site admin, if the problem persists.
If anyone has suggestions I would love to hear them,
Thanks,
Ron
Comments
_
perhaps one of these:
http://drupal.org/project/issues/smtp?status=Open&priorities=All&categor...
One more error to overcome
I have reviewed the pages and now have gotten to this error in this line of code; Fatal error: Class 'SMTP' not found in /var/www/modules/smtp/phpmailer/class.phpmailer.php on line 526
function SmtpConnect() {
if($this->smtp == NULL) { $this->smtp = new SMTP(); }
I do have class.phpmailer.php and class.smtp.php
This is the error code I get on the site;
* warning: PHPMailer::include_once(./class.smtp.php) [function.PHPMailer-include-once]: failed to open stream: No such file or directory in /var/www/modules/smtp/phpmailer/class.phpmailer.php on line 459.
* warning: PHPMailer::include_once() [function.include]: Failed opening './class.smtp.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/modules/smtp/phpmailer/class.phpmailer.php on line 459.
Now trying phpmailer
For some reason I cannot get smtp to work so I switched to phpmailer and now get the following error;
Fatal error: Class 'PHPMailer' not found in /var/www/modules/phpmailer/includes/phpmailer.class.inc on line 15
The odd thing is that it is in the file. I have deleted the file and re extracted it. In the path indicated by the error.
Here's a
Here's a solution:
http://drupal.org/node/616966#comment-2223492