Get the gravatar.

@param string $email

@return string
434583
public function getGravatar($email = null)
    {
        if (isset($email)) {
            $this->setEmail((string)$email);
        }

        $url = self::BASE_URL;
        if ($this->secure) {
            $url = self::BASE_URL_SECURE;
        }

        $url .= $this->email;
        $url .= $this->extension;
        $url .= '?s=' . $this->size;
        $url .= '&d=' . $this->default;

        if ($this->forceDefault) {
            $url .= '&forcedefault=y';
        }

        $url .= '&rating=' . $this->rating;

        return $url;
    }
42842
private function userFromEmail($email)
    {
        $parts = explode('@', $email);

        if (count($parts) == 2) {
            return strtolower($parts[0]);
        }

        return null;
    }
609011
public function getAutoregisterModel($email)
    {
        if(!$this->isRegistrationEnabled()) {
            return null;
        }

        $ret = User::USER_AUTOREGISTER; // default if there is no whitelist defined at all

        // try to match against the whitelist
        if( ($xml = $this->get_sxml_structure()) !== false) {
            $wl = $xml->xpath('/record/registration/auto_register/email_whitelist');
            if($wl !== false && count($wl) === 1) {
                $ret = null;    // there IS a whitelist, the email must match

                foreach ($wl[0]->xpath('email') as $element) {
                    if (preg_match($element['pattern'], $email) === 1) {
                        return (string)$element['user_model'];
                    }
                }
            }
        }

        return $ret;
    }
499995
public function getByEmail(string $email)
	{
		return $this->setAuthorizer($this->getModel()->where('email', '=', $email)->first());
	}
430211
private function getHash($email)
    {
        try {
            $gravatar_hash = md5(strtolower(trim($email)));
            return $gravatar_hash;
        } catch(Exception $e) {
            return false;
        }
    }
696747
public static function getGravatarFromEmail($email ,$width = 80)
    {
        $gravatarURL = "https://gravatar.com/avatar/".md5(strtolower(trim($email))).($width ? '?s='.$width : "");

        return $gravatarURL;
    }
245169
public static function email($email)
    {
        $html = self::getInstance()->html;
        $args = func_get_args();
        return call_user_func_array(array($html, __FUNCTION__), $args);
    }
1077582
public function getAvatarAttribute()
    {
        $hash = ! empty($this->email) ? md5(strtolower(trim($this->email))) : '';

        return sprintf('//secure.gravatar.com/avatar/%s?d=mm', $hash);
    }
159729
public static function Email($Email) {
      $Max = max(3, floor(strlen($Email) / 2));
      $Chunks = str_split($Email, mt_rand(3, $Max));
      $Chunks = array_map('htmlentities', $Chunks);
      
      $St = mt_rand(0,1);
      $End = count($Chunks) - mt_rand(1, 4);
      
      $Result = '';
      foreach ($Chunks as $i => $Chunk) {
         if ($i >= $St && $i <= $End) {
            $Result .= '<span style="display:inline;display:none">'.str_rot13($Chunk).'</span>';
         }
         
         $Result .= '<span style="display:none;display:inline">'.$Chunk.'</span>';
      }
      
      return '<span class="Email">'.$Result.'</span>';
   }
357967
public function gravatar()
    {
        // Check for valid gravatar
        $gravCheck = 'http://www.gravatar.com/avatar/'. md5( strtolower( trim( $this->email ) ) ) .'.png?d=404';
        $response  = get_headers($gravCheck);

        // If a valid gravatar URL is found, use the gravatar image
        if ($response[0] != "HTTP/1.0 404 Not Found"){
            return 'http://www.gravatar.com/avatar/'. md5( strtolower( trim( $this->email ) ) ) .'.png?s=200&d=blank';
        }

        // If no other image is set, use the default
        return '/img/no_user.png';
    }
852036
public function exists($email)
    {
        $url = $this->gravatar->buildGravatarURL($email);
        $headers = get_headers($url, 1);
	    
        return (boolean) strpos($headers[0], '200');
    }
460776
protected function getByEmail($email) {
        $users = $this->_client->get('/users?search='.urlencode($email));
        return isset($users[0]) ? $users[0] : false;
    }
1367601
public String getGravatar() {
        if (getEmail() == null) {
            return "http://www.gravatar.com/avatar/00000000000000000000000000000000";
        } else {
            final MD5 md5 = new MD5();
            final String hash = md5.calcMD5(getEmail());
            return "http://www.gravatar.com/avatar/" + hash;
        }
    }
553476
public function getGravatar($email, $size = null, $rating = null, $default = null, $secure = null)
    {
        $hash = $this->getHash($email);

        $map = array(
            's' => $size ?: $this->settings['size'],
            'r' => $rating ?: $this->settings['rating'],
            'd' => $default ?: $this->settings['default'],
        );

        if (null === $secure) {
            $secure = $this->settings['secure'];
        }

        return ($secure ? 'https://secure' : 'http://www').'.gravatar.com/avatar/'.$hash.'?'.http_build_query(array_filter($map));
    }
445179
static public function extractDomainFromEmail($email)
    {
        if (Validator::validEmail($email)) {
            $splitArr = explode('@', $email);
            $domain = array_pop($splitArr);

            return $domain;
        }

        return null;
    }
1356635
public function normalizeEmail($email)
    {
        if (preg_match('#[^(\x20-\x7F)]+#', $email)) {

            list($user, $domain) = explode('@', $email);

            return $user . '@' . $this->punycode($domain);

        } else {
            return $email;
        }
    }
1036120
public static function oneByEmail($email)
	{
		if (!filter_var($email, FILTER_VALIDATE_EMAIL))
		{
			return self::oneByUsername($email);
		}

		return self::all()
			->whereEquals('email', $email)
			->row();
	}