Getting error when Enabling SMPT auth module in Administer\Site configuration\SMTP Authentication Support.
Could you please let me know how to correct this error?

SMTP Authentication Support:
----------------------------
SMTP.module is INACTIVE.
The configuration options have been saved.
SMTP.module is active.
SMTP.module is active.
The configuration options have been saved.
SMTP.module is active.
SMTP.module is active.

warning: require_once(modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in D:\hshome\denduluri\denduluri.com\modules\smtp\smtp.module on line 234.
warning: require_once(modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in D:\hshome\denduluri\denduluri.com\modules\smtp\smtp.module on line 234.

CommentFileSizeAuthor
#33 README.txt1.67 KBpinenut
#23 folders.png328.32 KBJSCSJSCS

Comments

oadaeh’s picture

Category: bug » support

Did you follow the directions in the INSTALL.txt file, including downloading and installing the PHPMailer package?

vdenduluri’s picture

Thanks for the reply. I checked it and now I copied phpMailer_v2.1.zip contects to folder "phpmailer" I created in SMTP module folder.

Now I dont get that error but I am getting "HTTP 500 Internal Server Error" when I try to send test email from Contact page of My account.

You may check it out by creating your profile at my website www.denduluri.com

BTW I am experimenting with this module as I getting the following error (with defualt mail functionality provide by drupal), when I try to send email (esspecially the one's sent when creating a new account) - "553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)".

I am using the STMP/POP3 mail account thru Outlook in my computer.

oadaeh’s picture

You might need authentication and/or SSL/TLS to use that SMTP server. Have you checked those settings to make sure they match?

bdtushar’s picture

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

I m having problem with this

oadaeh’s picture

@bdtushar: Did you follow the directions in the INSTALL.txt file, including downloading and installing the PHPMailer package?

bdtushar’s picture

warning: fsockopen() [function.fsockopen]: unable to connect to smtp.gmail.com:25 (No connection could be made because the target machine actively refused it. ) in G:\Program Files\VertrigoServ\www\modules\smtp\phpmailer\class.smtp.php on line 122.
warning: fsockopen() [function.fsockopen]: unable to connect to :25 (No connection could be made because the target machine actively refused it. ) in G:\Program Files\VertrigoServ\www\modules\smtp\phpmailer\class.smtp.php on line 122.
Unable to send e-mail. Please contact the site admin, if the problem persists.

I ma having this problem

bdtushar’s picture

Assigned: Unassigned » bdtushar

SMTP.module is active.
A test e-mail has been sent to arctushar@yahoo.com. You may want to check the logs for any error messages.
Unable to send e-mail. Please contact the site admin, if the problem persists.

My all problem has been fixed. But this problem is new. I dont know what to do now.

oadaeh’s picture

Assigned: bdtushar » Unassigned
Status: Postponed (maintainer needs more info) » Closed (fixed)

@bdtushar: See this issue: http://drupal.org/node/280081. I have updated the code and it should be available before too long, but it may take up to 12 hours.

vdenduluri’s picture

Hi,

When I am using SMTP with gmail(with below details), I am getting following error:
Sever name: smtp.gmail.com
SMTP Port: 465
Use encrypted protocol: USE SSL
SMTP Authentication - gave my username@gmail.com and password
E-mail from address: username@gmail.com
E-mail from name: vamsi
Send test e-mail: username@gmail.com

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 D:\hshome\denduluri\denduluri.com\modules\smtp\phpmailer\class.smtp.php on line 122.

Thanks,
Vamsi.

oadaeh’s picture

@vdenduluri (and bdtushar): Sorry about it, but I accidentally applied the bug fixes I was making to the HEAD branch instead of the 6.x branch. I've finally committed the fixes to 6.x, but they aren't ready for download yet. Watch http://drupal.org/node/279095 for a "Last updated" date newer than July 10, 2008, then download and install that one.

vdenduluri’s picture

thanks oadaeh.

SMTP with Gmail work perfect.

I still have issue my webhosting mail server.
It always give me message "553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)".

I guess, I need to work that out with my web hosting team.

Thanks,
Vamsi.

vdenduluri’s picture

Hi oadaeh,

I got the following reply from my web hosting provider:

'You experienced "553 sorry, .... (#5.7.1)" error message due to POP-before-SMTP authentication failure. In POP before SMTP, the relay system collects your IP address when you authenticate yourself with the POP server, and then permits SMTP relaying from that IP address for a short period of time. In other words, if your server uses POP before SMTP, you need to check your mail first, only then you can send your messages'

Could you please tell if there any way in this module that I can configure POP before SMTP ?

Thanks & Regards,
Vamsi.

rajeshh’s picture

Hi oadaeh,
I downloaded SMTP module and follow the instructions as given in ReadMe and Install file.while configuring SMTP.
I gave the same details which is mentioned earlier in this forum for configuring the SMTP,i got the following warning message .

warning: fsockopen() [function.fsockopen]: no SSL support in this build in C:\Program Files\sugarcrm-4.5.0f\htdocs\drupal-6.2\sites\all\modules\phpmailer\class.smtp.php on line 122.
warning: fsockopen() [function.fsockopen]: unable to connect to smtp.gmail.com:465 in C:\Program Files\sugarcrm-4.5.0f\htdocs\drupal-6.2\sites\all\modules\phpmailer\class.smtp.php on line 122.
warning: fsockopen() [function.fsockopen]: no SSL support in this build in C:\Program Files\sugarcrm-4.5.0f\htdocs\drupal-6.2\sites\all\modules\phpmailer\class.smtp.php on line 122.
warning: fsockopen() [function.fsockopen]: unable to connect to :465 in C:\Program Files\sugarcrm-4.5.0f\htdocs\drupal-6.2\sites\all\modules\phpmailer\class.smtp.php on line 122.
Unable to send e-mail. Please contact the site admin, if the problem persists.

can u guide me how to solve it

oadaeh’s picture

Vamsi, I'm sorry I missed your comment earlier. This module does not have anything for POP-before-SMTP authentication, but the PHPMailer library that this module depends on does come with a PHP class that can help you.

Rajeshh, please create a new issue for your request. This one is closed and has nothing to do with what you are asking.

jayanthp’s picture

Status: Closed (fixed) » Active
oadaeh’s picture

Status: Active » Closed (fixed)
archimax’s picture

Status: Closed (fixed) » Needs work

On my Windows XP localhost I created: httpdocs/modules/smtp and placed download and PHPMailer inside.
Completed both:
4. Enable the SMTP Authentication Support module on the Administer -> Site
building -> Modules page.
5. Fill in required settings on the Administer -> Site configuration -> SMTP
Authentication Support page.

SSL was required by the e-mail server, and I uncommented the line in: xampp/php/php.ini

I entered settings to eliminate all error messages except:
"Unable to send e-mail. Please contact the site administrator if the problem persists."

I am using ATT e-mail. ATT sends my account this message:
“Unable to send the message. Please verify the e-mail address in your account properties. The server responded: 553 From: address not verified.”
If you have received this error message, you will continue to receive it for emails sent with a non-verified address until you verify your Yahoo! email address or any other non AT&T email addresses (e.g., name@company.com, name@college.com, name@yahoo.com, etc.). Verification instructions are available on the AT&T Help site http://helpme.att.net/article.php?item=11646. If you have already verified your non AT&T email address and are no longer receiving the 553 error message, please disregard this email.

My e-mail account has been enabled and active for years.

Your assistance will be appreciated.

archimax’s picture

My install of Drupal on WindowsXP localhost is unable to send e-mail using SMTP Authentication Support unless the e-mail address in 'Administer-->Site configuration-->Site information -- E-mail address:' matches the 'E-mail from address' in the SMTP Authentication Support module form. If they do not match, Error 553 results.

Selecting 'Enable debugging' on the SMTP Authentication Support form yields the data below. The last line of the data indicates that the SMTP Authentication Support module is providing the e-mail address entered at 'Administer-->Site configuration-->Site information' instead of the 'E-mail from address' provided in the SMTP Authentication Support module form.

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 smtp105.sbc.mail.re2.yahoo.com ESMTP "
SMTP -> get_lines(): $data is "220 smtp105.sbc.mail.re2.yahoo.com ESMTP "
SMTP -> FROM SERVER:220 smtp105.sbc.mail.re2.yahoo.com ESMTP
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-smtp105.sbc.mail.re2.yahoo.com "
SMTP -> get_lines(): $data is "250-smtp105.sbc.mail.re2.yahoo.com "
SMTP -> get_lines(): $data was "250-smtp105.sbc.mail.re2.yahoo.com "
SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN XYMCOOKIE "
SMTP -> get_lines(): $data is "250-smtp105.sbc.mail.re2.yahoo.com 250-AUTH LOGIN PLAIN XYMCOOKIE "
SMTP -> get_lines(): $data was "250-smtp105.sbc.mail.re2.yahoo.com 250-AUTH LOGIN PLAIN XYMCOOKIE "
SMTP -> get_lines(): $str is "250-PIPELINING "
SMTP -> get_lines(): $data is "250-smtp105.sbc.mail.re2.yahoo.com 250-AUTH LOGIN PLAIN XYMCOOKIE 250-PIPELINING "
SMTP -> get_lines(): $data was "250-smtp105.sbc.mail.re2.yahoo.com 250-AUTH LOGIN PLAIN XYMCOOKIE 250-PIPELINING "
SMTP -> get_lines(): $str is "250 8BITMIME "
SMTP -> get_lines(): $data is "250-smtp105.sbc.mail.re2.yahoo.com 250-AUTH LOGIN PLAIN XYMCOOKIE 250-PIPELINING 250 8BITMIME "
SMTP -> FROM SERVER: 250-smtp105.sbc.mail.re2.yahoo.com 250-AUTH LOGIN PLAIN XYMCOOKIE 250-PIPELINING 250 8BITMIME
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "235 ok, go ahead (#2.0.0) "
SMTP -> get_lines(): $data is "235 ok, go ahead (#2.0.0) "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "553 From: address not verified; see http://help.yahoo.com/sbc/dsl/mail/pop/pop-11.html "
SMTP -> get_lines(): $data is "553 From: address not verified; see http://help.yahoo.com/sbc/dsl/mail/pop/pop-11.html "
SMTP -> FROM SERVER:553 From: address not verified; see http://help.yahoo.com/sbc/dsl/mail/pop/pop-11.html
SMTP -> ERROR: MAIL not accepted from server: 553 From: address not verified; see http://help.yahoo.com/sbc/dsl/mail/pop/pop-11.html
The following From address failed: username@domain.com

(Where 'username@domain.com' is the eMail account I provided at 'Administer-->Site configuration-->Site information' instead of the 'E-Mail from address' provided on the SMTP Authentication Support module form.)
Changing 'Administer-->Site configuration-->Site information -- E-mail address:' to match the 'E-mail from address' provided in the SMTP Authentication Support module form succeeded in sending an e-mail from the AT&T e-mail server. Good luck.

scifisi’s picture

I had the exact same error as #1

warning: require_once(modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in D:\hshome\denduluri\denduluri.com\modules\smtp\smtp.module on line 234.
warning: require_once(modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in D:\hshome\denduluri\denduluri.com\modules\smtp\smtp.module on line 234.

Then I changed it from TLS to SSL and Bingo!

Many thanks for this module - a sweet bit of programming - very cool!

sys09mal’s picture

I "think" i have followed the same steps you are telling about but seems like iam having the same error.

Link of om directory

C:\xampp\htdocs\sv\modules\smtp\phpmailer

Or?did i lose my way?

Copy the files included in the tarball into a directory named "smtp" in your Drupal sites/all/modules/ directory.

what does the mean? do i need to create a folder inside the link below?
So it would seems like this:
C:\xampp\htdocs\sv\sites/all/modules/

Thanks in advance.

oadaeh’s picture

Where ever you installed this module is where you need to install phpmailer.

The recommended place to install any contributed or third party module is C:\xampp\htdocs\sv\sites/all/modules/, but that's not the only place they can be installed. It is recommended that you NOT install contributed modules in C:\xampp\htdocs\sv\modules\, because it will be harder for you when you update your site.

That being said, you should install this module in C:\xampp\htdocs\sv\sites\all\modules\smtp\ and then the PHPMailer code should be in C:\xampp\htdocs\sv\sites\all\modules\smtp\phpmailer\.

Copy the files included in the tarball into a directory named "smtp" in your Drupal sites/all/modules/ directory.
what does the mean? do i need to create a folder inside the link below?

Normally, when you extract the file in C:\xampp\htdocs\sv\sites\all\modules\, it will automatically create the smtp directory and put the files there, but you're using Windows and some third party archiving program, so I don't know if it will do it automatically or not. You may have to create the directory yourself.

franz’s picture

Title: Getting error when Enabling SMPT auth module in Site configuration-SMTP Authentication Support » Getting error when Enabling SMTP auth module in Site configuration-SMTP Authentication Support

fixing the title..

JSCSJSCS’s picture

StatusFileSize
new328.32 KB

I believe I have followed the instructions in the SMTP Authentication Support module install.txt and readme.txt files correctly.

I have tried two different smtp servers, but always get this error:
Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/smtp/phpmailer/class.phpmailer.php' (include_path='.;C:\php5\pear') in C:\wamp\www\sites\all\modules\smtp\smtp.module on line 266

I've noticed that there was not a class.phpmailer.php file in the phpmailer directrory and doble checked that it was not in the download compressed file.
The smtp folder had some siilar files (class.phpmailer.php.2.0.2.patch, etc) but not that one.

I installed a clean drupal 6.19 and wamp 2.0 on my laptop. Same error. I've read all I can but cannot get past this.

franz’s picture

JSCSJSCS, please check the phpmailer package you downloaded, it seems very odd that the files haven't been extracted to the phpmailer folder. Those folders are correct, but the files are missing, there should be something like this:

ChangeLog.txt
class.phpmailer.php
class.pop3.php
class.smtp.php
codeworxtech.html
docs
examples
language
LICENSE
phpdoc
README
test
JSCSJSCS’s picture

Found part of the porblem myself. the first link in the readme.txt file points to:
http://sourceforge.net/project/showfiles.php?group_id=26031

the default download is a PHP file labeled "varinsert_for_SPAW2.zip"

That download does not have the right files to make Drupal SMTP work.

I got the correct files by following the download link at:
http://phpmailer.worxware.com/index.php?pg=phpmailer

franz’s picture

Title: Getting error when Enabling SMTP auth module in Site configuration-SMTP Authentication Support » Documentation for downloading & patching PHPMailer was inaccurate
Component: Code » Documentation
Category: support » bug
Status: Needs work » Fixed

The list of files is for download is here:
http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6/

Thanks for correcting it, I'll commit the changes on the docs...

BTW, don't forget that the version to be downloaded is not the latest, but the ones that have a patch except 2.3 (which hasn't been properly tested)

I also added this info on the README.txt and the patch step on INSTALL.txt

not_Dries_Buytaert’s picture

Title: Documentation for downloading & patching PHPMailer was inaccurate » Display/ log a more clarifying error, whenever the PHPMailer sub-component is uninstalled.
Component: Documentation » Code
Status: Fixed » Active

Whenever the form 'admin/settings/smtp' is submitted and the PHPMailer sub-component is missing/ uninstalled, following error is displayed and/ or logged:

require_once(sites/all/modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in /.../sites/all/modules/smtp/smtp.module on line 266.

However, in such use-cases a more clarifying error would be more user-friendly, like:

A sub-component of the SMTP-module has not been (properly) installed. Please, refer to the installation instructions within the install.text file of aforementioned module for more info.

.
Please, incorporate this (system requirement check) to the module.

sparker888’s picture

Issue tags: +Solution, +phpmailer, +windows 7, +smtp, +WAMP, +solved, +DAMP

SMTP Module and PHPMailer on Windows 7 DAMP and Linux Production Server SOLVED!

After literally 30+ hours of searching forums and trial and error in configuration settings, I was able to get the SMTP Module with PHPMailer working to deliver e-mails on Drupal 6.19 (Using Apache 2.2.15, MySQL 5.1.48, PHP 5.2.13).

1. Install the SMTP Module (6.x-1.0-beta5) from http://drupal.org/project/smtp

Place the module files into a directory named "smtp" in your Drupal sites/all/modules/ directory (sites/all/modules/smtp).

2. Download the PHPMailer package (see below for loacation/version) and place it in a directory named "phpmailer" in
your /sites/all/modules/smtp directory (sites/all/modules/smtp/phpmailer).

There are some bad links out there, so be careful. I found the correct version of PHPMailer by going to http://sourceforge.net/projects/phpmailer/files/ and navigating down to the files listed at the bottom of the page: All Files -> phpmailer for php5_6 -> Previous Versions -> PHPMailer v2.1 for PHP5 (SMTP does not work on newer versions at the time of this writing)

NOTE: I tried the 'Libraries' module so I could put PHPMailer into sites/all/libraries instead of under the SMTP module files, but I could not get it to work on neither my test nor production site.

3. Login as site administrator.

4. Enable the SMTP Authentication Support module on the Administer -> Site building -> Modules page. Change the permissions if necessary and run update.php.

While you're at it, make sure your Drupal core and other modules are up to date.

5. Fill in required settings on the Administer -> Site configuration -> SMTP Authentication Support page.

This proved to be the most difficult part of the process because I ran into a number of errors while trying to configure the system. I'll try and explain what each of the major errors means (the ones I got anyway):

ERROR A:

SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
SMTP Error: Could not connect to SMTP host. SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
SMTP Error: Could not connect to SMTP host. SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
SMTP Error: Could not connect to SMTP host. 

For me, this occurred when I put in 'smtp.example.com' as my 'SMTP Server' under SMTP Server Settings. Instead, I had to use 'mail.example.com'. Your results will vary depending upon your host (mail server) setup.

ERROR B:

require_once(sites/all/modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in /.../sites/all/modules/smtp/smtp.module on line 266.

This error occurs when you do not have PHPMailer in the proper place. Or, you may have downloaded the wrong files for PHPMailer from one of the bad links that are in these forums.

ERROR C:

SMTP Error: Could not connect to SMTP host. SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)

This error occurred when I was running an older version of PHPMailer (version 5 instead of 2.21 was the error that occurred in my case).

ERROR D:

SMTP -> FROM SERVER:
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is " "
SMTP -> get_lines(): $data is " "
SMTP -> get_lines(): $data was " "
SMTP -> get_lines(): $str is " "
SMTP -> get_lines(): $data is " "
SMTP -> get_lines(): $data was " "
SMTP -> get_lines(): $str is " "
SMTP -> get_lines(): $data is " "
SMTP -> get_lines(): $data was " "
SMTP -> get_lines(): $str is " "
SMTP -> get_lines(): $data is " "
SMTP -> get_lines(): $data was " "
SMTP -> get_lines(): $str is " "
SMTP -> get_lines(): $data is " "
SMTP -> get_lines(): $data was " "
SMTP -> get_lines(): $str is " "
SMTP -> get_lines(): $data is " "
SMTP -> FROM SERVER:
SMTP -> ERROR: EHLO not accepted from server:
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is " "
SMTP -> get_lines(): $data is " "
SMTP -> FROM SERVER:
SMTP -> ERROR: HELO not accepted from server:
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is " 

You will receive this error if you are not using the proper SMTP Address or Port. In my case, I had the correct address, but was using an incorrect port. (The default SMTP port is 25, so you might receive this error if you use another common SMTP port alternative such as 80.)

Other Potential Errors:

I'm not sure if this was causing a problem or not, but if you have access to your server settings through SSH or WHM or something, look at your SMTP configuration (especially authentication settings). When I opened WHM and looked at my SMTP authentication configuration, I found that SMTP Tweaks was enabled. I disabled SMTP Tweaks because it only allows a few specific accounts (such as root) to use SMTP. There may be security issues here, so take this advice with caution. Maybe someone wtih more security knowledge can chime in on this one.

Please note that my setup did NOT require SSL authentication. If your host/server requires authentication, you're going to have to do more steps.

Potential solution for SSL authentication: One post says that you may need to install OpenSSL for Windows. http://www.slproweb.com/products/Win32OpenSSL.html.

Success!!

When I finally had all the right code in the proper places, and the configuration settings correct in SMTP Authentication Support, I enabled debugging, typed an address to send a test message to, and hit 'Save Configuration' on the SMTP Authentication Support configuration page, then I received the following debugging info and a test e-mail in my inbox:

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 <password>"
SMTP -> get_lines(): $data is "334 <password> "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 <password> "
SMTP -> get_lines(): $data is "334 <password> "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "235 Authentication succeeded "
SMTP -> get_lines(): $data is "235 Authentication succeeded "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 OK "
SMTP -> get_lines(): $data is "250 OK "
SMTP -> FROM SERVER:250 OK
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 Accepted "
SMTP -> get_lines(): $data is "250 Accepted "
SMTP -> FROM SERVER:250 Accepted
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "354 Enter message, ending with "." on a line by itself "
SMTP -> get_lines(): $data is "354 Enter message, ending with "." on a line by itself "
SMTP -> FROM SERVER:354 Enter message, ending with "." on a line by itself
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 OK id=1OxEri-0002aC-23 "
SMTP -> get_lines(): $data is "250 OK id=1OxEri-0002aC-23 "
SMTP -> FROM SERVER:250 OK id=1OxEri-0002aC-23
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "221 server.<mydomain>.com closing connection "
SMTP -> get_lines(): $data is "221 server.<mydomain>.com closing connection "
SMTP -> FROM SERVER:221 server.mydomain.com closing connection 

Note: Personal info was taken out between < and >.

6. The test e-mail simply says: "If you receive this message it means your site is capable of sending e-mail." Woot!

I hope this helps others avoid all the troubleshooting I had to go through to get this to work. I love it now, and it was worth the pain.

Cheers!

prokopton’s picture

Sub.

prokopton’s picture

RE: require_once(sites/all/modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in /.../sites/all/modules/smtp/smtp.module on line 266.

Here's what worked for me. I read the readme.txt and the link points to v 4.1 of phpmailer. I'm using Drupal 6.x and downloaded v 5.1 of phpmailer. The link is here:

http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6...

Make sure to choose: PHPMailer_v5.1.tar.gz or PHPMailer_v5.1.zip

zeev’s picture

Smtp module works well for me with follwing steps:

1. download the smtp module from http://drupal.org/project/smtp and extract it to sites/all/modules/ folder.
2. download phpmailer from http://code.google.com/a/apache-extras.org/p/phpmailer/downloads/detail?... and extract it to sites/all/modules/smtp/ folder and rename "phpMailer6.x.." to "phpmailer".
And make sure all files/folder are present in "phpmailer" : (mentioned in comment #24 :
ChangeLog.txt
class.phpmailer.php
class.pop3.php
class.smtp.php
codeworxtech.html
docs
examples
language
LICENSE
phpdoc
README
test
3. Enable smpt authentication support in drupal admin : admin/build/modules.
4. Go to admin/settings/smtp and give the values as you need and save settings.

That works for me well. :)

Happy Coding.. :)

frederico’s picture

The posting from revathich (#31) worked for me! Thank you!!!

I also had to make sure I was sending out from a valid email account on the server. I'm using Google Mail for my email server and thought I had to go through it. However, I created another email account and inputted the username and password information for that email in the SMTP configuration (/admin/settings/smtp) and bypassed Google Mail.

-Frederico Garza

pinenut’s picture

StatusFileSize
new1.67 KB

I installe smtp-7.x-1.0-beta2 today.
According to the README.txt file, the phpMailer package is no longer used.

"This module no longer uses the PHPMailer package as an external library, instead
a slimmed down version of the library have been relicensed and integrated with the
smtp module."

With or without phpmailer installed, I am unable to send e-mails with the SMTP module.

I would appreciate any help on this matter.

Jay

wundo’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)