I had a quick inspiration to check out the code Zoho Mail uses to implement the autocomplete feature that amazed me. This allowed me to get familiar with Firebug Javascript debugger.
On Settings->Common Settings->Mail accounts the field “Email ID” calls “confAccount(this)” when an /onblur/ event is triggered on it.
This little function checks whether the email is a valid GMail, Zenbe or Aol address and configures the SMTP/POP3 server addresses and ports automatically.
Have a closer look to the function loading the JS file and searching for “confAccount”.
Post new comment