SMTP AUthentication error

ryohio - February 26, 2009 - 10:08
Project:SMTP Authentication Support
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

hi drupal gurus,

i installed contact form on my site (leytegeo.com) and its gives me error like:

* Unable to send e-mail. Please contact the site admin, if the problem persists.
* Unable to send e-mail. Please contact the site admin, if the problem persists.

But it will reply Message sent as its auto responder. In the end, the admin didnt receive any email from the webform.

i read on the forum and the best way to install is the smtp module. yet, the same probllem i got the following error:

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/smtp/phpmailer/class.phpmailer.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/riocalle/public_html/sites/all/modules/smtp/smtp.module on line 246

Kindly help please!

thanks much,

rio

i read about foru

#1

oadaeh - March 11, 2009 - 19:30
Priority:critical» normal

Your fatal error means that you do not have the phpMailer package installed correctly, as directed by the INSTALL.txt file. Make sure the directory name is "phpmailer" (all lower case) and that it is a subdirectory of the SMTP module's installation directory (usually /sites/all/modules/smtp). Also, make sure you have the correct version of the phpMailer package for the version of PHP you have installed (which should be PHP 5.x).

#2

spangaroo - April 17, 2009 - 14:09

Sorry to bother you with basic stuff.

I tried installing the entire contents of the downloaded package into /public_html/sites/all/modules/smtp/phpmailer:

Directories
__filesource
media
PHPMailer
all remaining files located in PHPMailer_v5.0.0_phpdocs

I also tried installing the only the files located in the directory PHPmailer into /public_html/sites/all/modules/smtp/phpmailer.

Maybe I'm missing something really simple but I'm still getting the same error after enabling the module and configuring my SMTP settings. The "Fatal error: require_once()" message appears if I try and send a test message.

I attached an image so maybe is will be easier to spot my mistake.

Thank you for any help.

AttachmentSize
phpmailer-folder-config.jpg 67.28 KB

#3

spangaroo - April 17, 2009 - 16:33

Thanks to those that read this message but didn't roast the noob.

I see that I had downloaded the the wrong package from Sourceforge. Lesson learned, if it ends in "docs" it's not the right cluster.

I still had to mess around with getting my SMTP info entered correctly, but then it all worked just fine.

 
 

Drupal is a registered trademark of Dries Buytaert.