[![Build Status](https://travis-ci.org/bkrukowski/transparent-email.svg?branch=master)](https://travis-ci.org/bkrukowski/transparent-email) [![Coverage Status](https://coveralls.io/repos/github/bkrukowski/transparent-email/badge.svg?branch=master)](https://coveralls.io/github/bkrukowski/transparent-email?branch=master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/7f5196c71a7349a4b04228bbafb72c13)](https://www.codacy.com/app/bartlomiej-krukowski/transparent-email?utm_source=github.com&utm_medium=referral&utm_content=bkrukowski/transparent-email&utm_campaign=Badge_Grade) # Transparent Email Transparent Email clears aliases from email address. Email `John.Doe+alias@gmail.com` will be transformed to `johndoe@gmail.com`. ## Why? To detect multi-accounts on your website. ## Supported mailboxes * [gmail.com](https://gmail.com) * [tlen.pl](http://tlen.pl) * [33mail.com](https://www.33mail.com) * [outlook.com](http://outlook.com) * [yahoo.com](http://mail.yahoo.com) ## Usage ```php $cleaner = new \bkrukowski\TransparentEmail\TransparentEmail(); $transformedEmail = $cleaner->getPrimaryEmail('John.Doe+alias@gmail.com'); ``` ## Yahoo.com Aliases work different on Yahoo than on Gmail. On Gmail part after plus is skipped. For example message sent to `jane.doe+alias@gmail.com` will be redirected to `jane.doe@gmail.com`. Yahoo uses the following pattern[*](https://help.yahoo.com/kb/SLN16026.html): *baseName*-*keyword*@yahoo.com * *baseName* - value defined by the user, different than email login; * *keyword* - one from a list of keywords defined by the user. Therefore we do not know what is the real email, so in this case result will be `baseName@yahoo.com`, which actually does not exist.