1

I'm working on my localhost with a drupal project. I'd like to be able to send emails so I installed the SMTP Authentication Support module. Now I'm configuring it to send it with my gmail address but the test mail can't be send. I always get this error:

Unable to send e-mail. Contact the site administrator if the problem persists.

My Settings:

SMTP Server: smtp.gmail.com
SMTP Port: 465
Use encrypted protocol: no
Username: myusername@gmail.com (yes, this is correct in my settings)
Password: mypassword (yes, this is correct in my settings)
E-mail from address: myusername@gmail.com
E-mail from name: my username
E-mail address to send a test e-mail to: myotheremailaddress@hotmail.com

When I check the Enable Debugging checkbox I get this after trying:

SMTP -> FROM SERVER: 
SMTP -> FROM SERVER: 
SMTP -> ERROR: EHLO not accepted from server: 
SMTP -> FROM SERVER: 
SMTP -> ERROR: HELO not accepted from server: 
SMTP -> ERROR: AUTH not accepted from server: 
SMTP -> NOTICE: EOF caught while checking if connectedSMTP Error: Could not authenticate.

Am I doing something wrong?

I've also tried it with PHPMailer module with the same settings, same result ..

3
  • 1
    I'd recommend to use Swiftmailer library...
    – xurshid29
    Apr 2 '14 at 14:17
  • @xurshid29: That doesn't really help the user answer their question.
    – rooby
    Apr 23 '14 at 13:03
  • @rooby I know this doesn't help him,.. this is just a suggestion..
    – xurshid29
    Apr 23 '14 at 13:06
1

Looks like Gmail needs SSL encryption, so I had to select that in the list of encryption, my bad!

Not the answer you're looking for? Browse other questions tagged or ask your own question.