Sending email with Joomla and Google Apps

Sergio del Amo picture Sergio del Amo · Sep 28, 2009 · Viewed 10.2k times · Source

I have the next settings in the Joomla Global Configuration panel.

**Mail Settings**  
Mailer: SMTP Server
Mail from: [email protected]   
From Name: John Smith   
Sendmail Path:  
SMTP Authentication: Yes
SMTP Security: SSL  
SMTP Port: 465  
SMTP Username: [email protected]       
SMTP Password: ******   
SMTP Host: gmail-smtp-in.l.google.com   

I am running Joomla 1.5.14.

I have in my google apps domain both IMAP and POP enabled.

When I try to send an email with an article link by clicking the small envelope icon I get the next feedback. "The e-mail cold not be send correctly". The SMTP validation seems to work because I do not get any SMTP error but the email is not sent. Any idea would be really appreciated!

I have tested with SMTP Host as smtp.gmail.com without success.

I have tried with sendmail defined as /usr/sbin/postfix but without success.

Solution

Set sendmail path to the sendmail command or point sendmail to postfix if you have postfix installed.

Set SMTP Host to smtp.gmail.com. I would look like:

**Mail Settings**  
Mailer: SMTP Server
Mail from: [email protected]   
From Name: John Smith   
Sendmail Path: /usr/sbin/sendmail
SMTP Authentication: Yes
SMTP Security: SSL  
SMTP Port: 465  
SMTP Username: [email protected]       
SMTP Password: ******   
SMTP Host: smtp.gmail.com

Answer

Vyacheslav picture Vyacheslav · Jul 9, 2010

Mail Settings

Mailer: SMTP Server Mail from: emailmydomain.com
From Name: John Smith
Sendmail Path: /usr/sbin/sendmail 
SMTP Authentication: Yes 
SMTP Security: None
SMTP Port: 25
SMTP Username: emailmydomain.com
SMTP Password: **
SMTP Host: ssl://smtp.gmail.com:465