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

vdenduluri - July 7, 2008 - 05:31
Project:SMTP Authentication Support
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

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.

#1

oadaeh - July 7, 2008 - 05:49
Category:bug report» support request

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

#2

vdenduluri - July 7, 2008 - 06:10

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.

#3

oadaeh - July 7, 2008 - 16:20

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

#4

bdtushar - July 8, 2008 - 18:53

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

#5

oadaeh - July 8, 2008 - 20:24

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

#6

bdtushar - July 9, 2008 - 02:33

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

#7

bdtushar - July 9, 2008 - 03:00
Assigned to:Anonymous» 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.

#8

oadaeh - July 9, 2008 - 15:20
Assigned to:bdtushar» Anonymous
Status:postponed (maintainer needs more info)» closed

@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.

#9

vdenduluri - July 11, 2008 - 07:56

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.

#10

oadaeh - July 11, 2008 - 15:10

@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.

#11

vdenduluri - July 13, 2008 - 08:17

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.

#12

vdenduluri - July 15, 2008 - 02:13

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.

#13

rajeshh - September 20, 2008 - 07:13

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

#14

oadaeh - September 20, 2008 - 14:11

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.

#15

jayanthp - April 23, 2009 - 08:36
Status:closed» active

#16

oadaeh - April 24, 2009 - 00:53
Status:active» closed

#17

archimax - June 2, 2009 - 23:00
Status:closed» 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.

#18

archimax - June 3, 2009 - 15:03

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.

#19

scifisi - October 1, 2009 - 23:35

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!

 
 

Drupal is a registered trademark of Dries Buytaert.