gromez/webmail-linker

Collection of Email Providers' Webmail Sites.

dev-master 2016-04-15 15:50 UTC

This package is not auto-updated.

Last update: 2024-04-19 16:41:55 UTC


README

Collection of Email Providers' Webmail Sites

About

Many websites require an email double opt-in during user registration. This project wants to fix the resulting break in user flow when users have to manually switch to their email providers' website to receive the confirmation email.

With Webmail Linker, you can offer a direct link to the user's webmail interface. In addition to the webmail URL, you'll get the name of the email provider and a favicon URL, so you can offer a button like "Check your email on [name and icon of the provider]".

The list contains 250+ email providers so far.

Languages

The core of this project, the list of email providers, is maintained in JSON. The provided wrapper classes to query the list are very simple – feel free to add libraries for other languages via pull requests.

Usage example (PHP):

$wl = new WebmailLinker();

if($provider = $wl->getProviderByEmailAddress('user@example.com')) {
  $html = '<a href="%s">Check your email at %s</a>';
  printf($html, htmlspecialchars($provider['url']), htmlspecialchars($provider['name']));
}

Contributing

Let's make Webmail Linker the most comprehensive compilation of email providers out there!

You can fork this repository and create pull requests for providers.json. You do not even have to check out the repository – GitHub's web editing capabilities make contributing even simpler.