Install the tricky drupal SMTP module for Email
Some hosting company has more strict access control for web hosting. one of the restriction is to prevent the 'nobody' user from sending email with no authentication. For drupal hosting at such company, the default email function of drupal will not work after the installation for such web hosting , We have to install the SMTP module to support drupal email functionality.
Steps to install and configure the SMTP Authentication Support module
- First just download the module and extract it under the modules directory 'sites/all/modules' as any other module installation.
- Go to 'Site Building->Modules' to enable the module

- Go to 'Site configuration->SMTP Authentication Support' to configure the module. and this is where the tricky thing happen.

- Filling the smtp server setting information is easy , we could get this information in our web hosting cpanel.
- Now comes the tricky part: Because the email SMTP protocol require all the sendmail operation be authenticated before sending the mail. We will have to fill in information for SMTP authentication, just create email account in the cpanel and fill in the email account information here.

- Fortunately the SMTP module comes with test options, We could always send testing email to verify the setting. but nothing happen, YES, no error log , no email sent to your testing account. what 's the problem?

I spent quite some time to figure it out and that is why I wrote this article in case somebody might come across it.
The secret is in the 'Site Configuration->Site Information'.

THE EMAIL IN THE SITE INFORMATION SHOULD BE THE SAME WITH THE EMAIL IN SMTP AUTHENTICATION or your mail goes nowhere!

kk
i did all this steps in my installation but still see this problem (Fatal error: require_once() [function.require]: Failed opening required 'profiles/drupal_commons/modules/contrib/smtp/phpmailer/class.phpmailer.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/celesti1/public_html/profiles/drupal_commons/modules/contrib/smtp/smtp.module on line 266)
i even installed phpmailer in the directory of the smtp but still get thesame message.
please ii really need a help on this .
Thanks
Thanks so much, this was
Thanks so much, this was really really helpful!!!
thank you, thank you!
thank you, thank you!
saves my day, thank you
saves my day, thank you
PHP Mailer
You might also need PHP Mailer. Since this is what fixed my problem. Once you get it copy and rename to phpmailer and place the file here:
sites\all\libraries\phpmailer
then you should be good to go.
Your welcome. lol
phpmailer
I had to install this too to get it to work, however I needed to put it in the SMTP module folder i.e. \all\modules\smtp\phpmailer
As before it was throwing the following error: warning: require_once(modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory
Also although I'm running php v5.2 I needed to download the php 4 version from here http://phpmailer.worxware.com/ as the php5 version doesn't contain the file class.phpmailer.php!
Appreciation !
Thank you buddy ! Saved a lot of time to me ... Thumbs up !
Thanks a ton
i spent last 2 hrs to find why the hell i am getting invalid address you@yourdomain when i am setting a proper address in smtp config... no where this is documented... thank you so much
thanks for the tutorial and
thanks for the tutorial and specially the last line :-)