Author Topic: ".travel" TLD is Bad email format, not saved.  (Read 2243 times)

lee

  • Posts: 10
    • View Profile
".travel" TLD is Bad email format, not saved.
« on: July 26, 2006, 05:18:02 pm »
Installed ListMailPro for client with a ".travel" domain. When adding their own email addresses to user database, I get a "Bad email format, not saved." error message.

We're using v1.86. Any fix available?

Thanks, Lee

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
".travel" TLD is Bad email format, not saved.
« Reply #1 on: July 26, 2006, 06:11:58 pm »
You'll have to go in and manually modify admin.php.  Do a search for "valid_email" - this will bring up the valid_email function.

Look for this line:
Code: [Select]
 if(ereg("^[\._a-z0-9'-]+(\.[_a-z0-9'-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.([a-z]){2,4})$", strtolower($xe))){
Change the 2,4 to 2,6:
Code: [Select]
 if(ereg("^[\._a-z0-9'-]+(\.[_a-z0-9'-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.([a-z]){2,6})$", strtolower($xe))){
This change will be in all future releases.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

lee

  • Posts: 10
    • View Profile
".travel" TLD is Bad email format, not saved.
« Reply #2 on: July 27, 2006, 06:19:21 pm »
Thanks. Your fix worked perfectly.