title: Sending email with Joomla and Google Apps
body: <p>I have the next settings in the Joomla Global Configuration panel. </p>
  
  <pre><code>**Mail Settings**  
  Mailer: SMTP Server
  Mail from: email@mydomain.com   
  From Name: John Smith   
  Sendmail Path:  
  SMTP Authentication: Yes
  SMTP Security: SSL  
  SMTP Port: 465  
  SMTP Username: email@mydomain.com       
  SMTP Password: ******   
  SMTP Host: gmail-smtp-in.l.google.com   
  </code></pre>
  
  <p>I am running Joomla 1.5.14. </p>
  
  <p>I have in my google apps domain both IMAP and POP enabled.</p>
  
  <p>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!</p>
  
  <p>I have tested with SMTP Host as <em>smtp.gmail.com</em> without success. </p>
  
  <p>I have tried with sendmail defined as <em>/usr/sbin/postfix</em> but without success. </p>
  
  <h1>Solution</h1>
  
  <p>Set sendmail path to the sendmail command or point sendmail to postfix if you have postfix installed. </p>
  
  <p>Set SMTP Host to smtp.gmail.com. I would look like: </p>
  
  <pre><code>**Mail Settings**  
  Mailer: SMTP Server
  Mail from: email@mydomain.com   
  From Name: John Smith   
  Sendmail Path: /usr/sbin/sendmail
  SMTP Authentication: Yes
  SMTP Security: SSL  
  SMTP Port: 465  
  SMTP Username: email@mydomain.com       
  SMTP Password: ******   
  SMTP Host: smtp.gmail.com
  </code></pre>