transparent-email/README.md
bkrukowski a2e4dbd2e4 Badges
2016-09-10 15:29:03 +02:00

1.7 KiB

Build Status Coverage Status Codacy Badge

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

Usage

$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*:

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.