cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling .ONLINE Email Extension

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Enabling .ONLINE Email Extension

How do I enable .online email extensions in Magento?

 

SYSTEM > CONFIGURATION > GENERAL > STORE EMAIL ADDRESSES

 

When trying add: address@website.ONLINE

 

I keep getting an error that the email address is invalid when trying to save it. The address is valid. It's setup through 1and1.com

 

Thank you,

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Enabling .ONLINE Email Extension

Hi,

This is because the .ONLINE tld is not supported by default in Magento.

 

It's quite easy to add support for it. Open up the file /lib/Zend/Validate/Hostname.php

 

Locate a line of code that looks as follows:

protected $_validTlds = array(

And you should see a list of TLDs in there.. e.g.

        'abogado',
        'ac',
        'academy',
        'accountants',
        .....

Just add the following into the list:

'online',

Hope this helps!
Andrew

Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner

View solution in original post

2 REPLIES 2

Re: Enabling .ONLINE Email Extension

Hi,

This is because the .ONLINE tld is not supported by default in Magento.

 

It's quite easy to add support for it. Open up the file /lib/Zend/Validate/Hostname.php

 

Locate a line of code that looks as follows:

protected $_validTlds = array(

And you should see a list of TLDs in there.. e.g.

        'abogado',
        'ac',
        'academy',
        'accountants',
        .....

Just add the following into the list:

'online',

Hope this helps!
Andrew

Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner

Re: Enabling .ONLINE Email Extension

How does this help when a customer comes along with another TLD that isn't supported? they won't be able to create thier account and sales will be lost. I cannot believe that the Magento developers could allow such a situation to occur. This issue is going to cost store owners business. A proper fix is needed for this ASAP.