New feature for Magento Gmail or Google Apps Email Extension

Just a quick note to say I have added some new functionality to the Gmail or Google Apps email sending extension I wrote for Magento.

Basically several people asked for reply-to functionality, that would use the Magento store addresses that were being used on the outbound email. The change was very minor, I guess I just didn’t see it as being important at the time. Anyway, it’s a configurable option now, so feel free to either use it or not. You can get the extension from Magento Connect.

The change for those interested was very small, just a simple reply-to header as shown below:

// If we are using store emails as reply-to's set the header
if (Mage::helper('googleappsemail')->isReplyToStoreEmail()) {
      $mail->addHeader('Reply-To', $this->getSenderEmail());
}

Also here are some screenshots showing the new configuration option and also how emails sent using the option or not using it.

The Gmail and Google Apps email configuration for Magento is very easy.

The Gmail and Google Apps email configuration for Magento is very easy.

You’ll notice no real changes here, just one new Yes/No option that if enabled will use the reply-to functionality shown below. Basically the reply-to email will be the one Magento is configured to use from the below Store email addresses screen.

This shows an example of some store email addresses configured in Magento

This shows an example of some store email addresses configured in Magento

These are the email addresses you will see in the reply-to field as shown in the examples below.

The default behavior is to send with no reply-to, as it seems the trend is toward automated emails that do not receive responses.

The default behavior is to send with no reply-to, as it seems the trend is toward automated emails that do not receive responses.

This image shows the default non-reply behavior, the from email is used as the to email for any replies.

This shows the new feature, a reply-to field that email clients will use to populate the reply to field.

This shows the new feature, a reply-to field that email clients will use to populate the reply to field.

This screenshot shows the use of the reply-to where Gmail will send the reply to the given email rather than back to the original sender address.

If you have any questions, feedback etc I’m always keen to hear it so please comment or contact me directly.

You might also be interested in:

  1. Using Gmail or Google Apps email with Magento
  2. Sneak Peek at the New Magento Gmail/Google Apps and SMTP extension
  3. Google Apps Email/Gmail Magento Extension v0.5 released
  4. Gmail and Google Apps 500 emails per day sending limit and Magento
  5. Pre-release: SMTP Pro / Magento Gmail & Google Apps Email Beta testing (win a prize)


Tagged as , , , , , + Categorized as Google Apps Email Magento Extension, Magento, Projects

14 Comments

  1. Nice work buddy. I have been using this in my dev environment without issue. We plan to use it in the release of our store when it’s ready (the store that is).

  2. I installed google apps a few weeks back. Everything is working fine, except for when new order comes in, Magento is not sending emails to admin. Emails go to customers just fine. I have set up everything under Configuration / Sales Emails but still no sales emails go to admin.

  3. Do you see them in the ’sent’ folder when you log into the google apps web interface?

  4. Thanks Ashley for this great extension.

    I have installed your extension, set up everything, but when I run self test I get an error.

    [code]
    Unable to send test email. Exception message was: Warning: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto in ...\lib\Zend\Mail\Protocol\Smtp.php on line 206...
    Please check and double check your email and password. If in any doubt you can login to the web interface for your email address to confirm at either 'mail.google.com/a/your_domain' or 'gmail.com'
    [/code]

    What is the problem? Can you help me out?

  5. Hi, Dean

    Thanks for using my extension. Please check that you host has openssl installed and enabled. You can check it with a phpinfo() too. Let me know.

  6. Thanks for the extension Asley.
    I too had that issue as Dean. It was solved by installing openSSL setup and then by enabling openSSL in php.ini. Then before running the ‘Self Test’, the configurations need to be saved in Confiuration/Adanced/system.

    Thanks again (for the post on openSSL). :)

  7. Hi Ashley, I have the same problem as above.

    I have OpenSSL installed, enabled in the php.ini and also enabled within Confiuration/Adanced/system.

    Any ideas ? :(

  8. Just to update for future reference, the OpenSSL not being installed etc is normally always fixable by your hosting provider.

  9. I tried your extension.
    I am getting the following error:
    Unable to send test email. Exception message was: 334 UGFzc3dvcmQ6 …

  10. That error usually means that you have used the wrong username and password a couple of times and now you need to log in using the gmail/google apps web interface to solve the captcha and prove you;re human.

  11. I HAve the same error .. I check my user//passwd and still show it

    Unable to send test email. Exception message was: 334 UGFzc3dvcmQ6 …

    Other reason ???

  12. Did you log in to the web front end for gmail?

  13. I am having the same problem, I can log into either my gmail account or google apps from the web frontend no problem, no captcha verification either…

  14. I’m not sure, here’s an idea: try to create a brand new ‘disposable’ gmail account for testing – enable IMAP in the gmail settings and see if that works?

Leave a Comment

Name:

Email:

Website:

Sporadic Tweeting...

  • My Top 3 Weekly #lastfm artists: The Black Keys (86), Mos Def (9) and Foo Fighters (8) http://bit.ly/c6eW5I 4 days ago
  • Finally beaten the 'Invalid package.xml format' fluff when trying to upload to Magento Connect - latest SMTP finally available there - yah! 4 days ago
  • My latest post includes a guide to making a basic extension too, so if you're just starting out with Magento extensions, check it out. 5 days ago
  • More updates...

What I'm listening to

  • The Black Keys - Brothers
  • Mos Def - Black On Both Sides
  • Foo Fighters - Skin and Bones
  • The Black Keys - Chulahoma
  • The White Stripes - Icky Thump
  • The Naked and Famous - This Machine
  • The Black Keys - The Moan
  • Red Hot Chili Peppers - Blood Sugar Sex Magik
  • Fat Freddys Drop - Based on a True Story