Three different Drupal Email configuration for different web hosting provider

After successful configuration of the SMTP Authentication Support module according to the previous article here, It seems everythings is OK for a while until I register email account on Gmail and then I find out that It seems my drupal could not send email to any Gmail account!

It looks like my previous configuration does not solve everything, I have to think it through and find out why.

I do some reading about the general Drupal Email configuration and problems that people often runs into, and finally I figure it out like this:

There 're usually  three different ways of configuring drupal email functionality:

  1. The first and easiest way is to configure Drupal to use the operating system 's sendmail.

    This kind of configuration is usually  done automatically during the installation of drupal, you might not  notice it during your drupal installation.

    If you could receive mail after the installation of drupal, CONGRADULATIONS! your web hosting server is capable of sending email without any authentication. enjoy it and you could just forget everything I write here.
     

  2. Configure Drupal to use your web hosting 's SMTP server.

    If you could not receive mail  after drupal installation, so you might be in the same situation as I do, which means that you have to configure drupal to use SMTP authentication in order to send mail.

    You have to create the mail accout in your web hosting cpanel and configure drupal according to our previous article here.

    It works most of the time but I never find out  why it doesn't work sending email to Gmail account, might be it 's depend on the web hosting company 's SMTP server 's capability that we might never know!

     

  3. Configure drupal to use external SMTP server (e.g. Gmail 's SMTP server)

    It seems that this is the final choice for me right now, First We  have to register one Gmail account and configure SMTP Authentication  just as options 2,  We only need to  replace the SMTP authentication server informatio using Gmail 's SMTP server that you could find in your Gmail settting.

I solve my problem using the third configuration above. and hopefully I do not have to return to this drupal email problem any more.

Thank you very much for you

Thank you very much for you can share your post,the article content written very well,extremely is worth my studybest ipad keyboard

Not the brightest bulb

Hi

great article. I'm testing drupal 7 on my home xampp setup on Windows 7.

I followed both artilces on SMTP and I'm not getting/conprehending the google SMTP authentication.
the smtp server is smtp.googlemail.com.
The SMTP username is simply my google username right?

Wait...it just worked. I received at test e-mail to the same google account.
Let me try...within a drupal contact form. Oh..fun... Thanks for spending the time
figuring this out.

If 1 does not work you have to complain

Very clear explanation. Thanks.

If method 1 does not work, you have a good reason to complain to your web host provider. It should work, even for the cheapest hosting formula!

The same 3 possibilities exist for when you run your own server. My advice: if you can, make method 1 work by configuring sendmail on the server.

Thanks!

Your article helped me much to configure Drupal with Gmail in 5 minutes. I used the 3rd choice. Just one point: I had to set "Use encrypted protocol: " to "Use SSL" to work with Gmail. It is also stated in Drupal help text under the combobox (This allows connection to an SMTP server that requires SSL encryption such as Gmail.) Have a nice day and thanks!

Juraj

Genius!

I was banging my head against this problem for the last one month but you solved it in 5 minutes. Thank you so much.