Is there a sure-fire way to get google apps smtp working in drupal? All the searches I've done turn up nothing with a solution, or really old stuff for old versions.

using:
drupal 6.12
google apps
I'm trying "SMTP Authentication Support" 6.x with phpmailer 5.02 installed with the following settings:

Turn this module on or off: ON
SMTP Server: smtp.gmail.com
Port: 465
Use encrypted protocol: SSL
Username: admin@mydomain.com
Password: mypassword

I get "
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
SMTP Error: Could not connect to SMTP host.
"

on every attempt to send email either via contact form, or using the test for in the SMTP config "E-mail address to send a test e-mail to: "

Is there a solution for this? or any other details to check whether gmails end or mine?

google apps / gmail is set up fine. I can send email from mail.yahoo.com to admin@mydomain.com and reply back and it's all good. people can direct email me just fine, and I can reply just fine. drupal & google smtp aren't working.

Comments

vm’s picture

have you investigated the smtp.module?

ksargent’s picture

can you provide a link?

the module I've been trying is http://drupal.org/project/smtp. it's called "SMTP Authentication Support"

Is there a newer, better module? searches containing smtp and/or gmail return so many irrelevant results that it's hard to find any info.

vm’s picture

that's the module

the project page is called SMTP Authentication support but the module itself is smtp.module.

ksargent’s picture

hosted at hotdrupal and they are also looking into the issue, more suggestion / resources still appreciated.

ksargent’s picture

Thanks for the help and sorry for the freak out.

it was firewall issues / port blocked.

prokopton’s picture

I tried both phpmailer and smtp modules. Emails were received through Google Apps. However, the "from" field is always from email@mydomain.com and not the email address that the user originally put in the contact form.

Each time I reply to an email, I'm replying to myself. So I have to copy and manually paste the user's email address from one of the fields in the email header into the "to" field.

I'm not sure if it's the modules (phpmailer, smtp) or Google Apps. or some setting on my Ubuntu 10.04 LTS server.

prokopton’s picture

I just set it up with Microsoft Outlook 2003 to receive email from Google Apps--IMAP. It turns out that in Outlook 2003, the "from" field is the same as what the user put in the contact form and when I reply, it replies to the correct email address and not email@mydomain.com . It might be something on Google Apps's end...

prokopton’s picture

Come to think of it, it may not be Google Apps because it worked fine on with my old shared hosting provider. This issue occurred when I set up my site on a VPS.

ppokah0111’s picture

I am looking an answer and its just right here. I just followed what u guys said and my life just became easier.