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)

15 Responses to “New feature for Magento Gmail or Google Apps Email Extension”

  1. Lane June 15, 2009 at 7:56 am #

    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. fatos July 23, 2009 at 4:21 pm #

    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. Ashley July 23, 2009 at 4:31 pm #

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

  4. Dean August 11, 2009 at 5:00 am #

    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. Ashley August 11, 2009 at 12:49 pm #

    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. supunmali October 19, 2009 at 1:40 am #

    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. Shane January 15, 2010 at 6:58 am #

    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. Ashley January 17, 2010 at 11:29 am #

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

  9. louis February 2, 2010 at 9:57 pm #

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

  10. Ashley February 3, 2010 at 1:10 am #

    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. David Portales February 12, 2010 at 4:50 pm #

    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. Ashley February 13, 2010 at 5:16 am #

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

  13. Somsak March 22, 2010 at 11:00 am #

    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. Ashley March 22, 2010 at 11:12 am #

    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?

  15. Jb October 23, 2011 at 10:46 pm #

    Hi Ashley!

    We’ve been using your extension and it works well for us. However, on SMTP Pro Email SMTP Settings when we enable ‘Use Store Email Addresses for Reply-to’ . Our mailer no longer works unless the Smtp username is similar with the email address stored in the store email addresses. What could be the problem?

    Thanks man! :)

Leave a Reply:

Gravatar Image