Fetches a user by its email address.

@param  string                                   $email Email address
@return \mako\gatekeeper\entities\user\User|bool
499995
public function getByEmail(string $email)
	{
		return $this->setAuthorizer($this->getModel()->where('email', '=', $email)->first());
	}
52674
public function fetchTokenByEmail(string $email) : ?Token
    {
        return $this->getModel()
                    ->newQuery()
                    ->where('email', $email)
                    ->first();
    }
368305
private function getNewMailer($email = '')
    {
        $mail = new PHPMailer();
        $mail->isSMTP(); // Set mailer to use SMTP
        $mail->Host = 'smtp.mandrillapp.com'; // Specify main and backup SMTP servers
        $mail->SMTPAuth = true; // Enable SMTP authentication
        $mail->Username = 'smtp username'; // SMTP username
        $mail->Password = 'smtp-password'; // SMTP password
        $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
        $mail->Port = 587; // TCP port to connect to
        $mail->CharSet = 'utf-8';

        $mail->From = ADMIN_EMAIL;
        $mail->FromName = BLOG_TITLE;

        if (is_string($email)) {
            $mail->addAddress($email);
        } else if (is_array($email)) {
            foreach ($email as $e) {
                $mail->addAddress($e);
            }
        }
        return $mail;
    }
932878
public static function validateEmail($email)
    {
        $email = trim($email);

        if (false === filter_var($email, FILTER_VALIDATE_EMAIL)) {
            throw new \InvalidArgumentException(sprintf('The Email "%s" is invalid.', $email));
        }

        return $email;
    }
760287
public static function fromEmail($email, $active = true)
    {
        global $PPHP;
        $db = $PPHP['db'];

        $email = strtolower($email);
        $isActive = ($active ? ' AND active ' : '');
        if ($user = $db->selectSingleArray(self::$_selectFrom . " WHERE email=? {$isActive}", array($email))) {
            return $user;
        };
        return false;
    }
850127
public function findByEmail($email)
    {
        $this->addWhere('user_email', $email);
        $this->addWhere('user_is_activated', 1);

        try {
            $user = $this->selectOne();
        } catch (ExceptionNoData $exception) {
            throw new LoginException('Login and / or password is incorrect!', 1000, $exception);
        }

        return $user;
    }
383795
public function findByEmail($email): ?User
    {
        return DB::table('user')
            ->where('email', '=', $email)
            ->get()
            ->map(User::rowMapper())
            ->first();
    }
109903
public function send($email)
    {
        $this->email = $email;
        $this->attachments = $email->getAttachments();

        $addresses = $this->addressManager->manageAddresses($this->email);

        $this->needsSpool = (count($addresses) > 1);

        if ($this->email->getIsTest()) {
            return $this->directSend($this->email->getTestAddressAsArray());
        }

        if ($this->needsSpool) {
            return $this->spoolSend($addresses);
        }

        return $this->directSend($addresses);
    }
181106
public function getByEmail ($email)
    {
        $entity = $this->er->findOneBy(array('email' => $email));

        if (NULL == $entity) {
            throw new Exception("User not found: email=$email");
        }

        return $this->getModel($entity);
    }
364795
def get_user_by_email(self, email):
		""""""

		call = "/api/users/"+ str(email)

		return self.api_call(call=call, method="GET")
260258
private function getUser($email)
    {
        $user = $this->userRepository->findOneBy([
            'email' => $email,
        ]);

        if (empty($user)) {
            throw new FormException(sprintf('Unable to find user by email "%s".', $email));
        }

        return $user;
    }
173377
public function getGoogleBatchServiceGmailForEmail(string $email)
    {
        if (array_key_exists($email, $this->googleBatchServiceGmails)) {
            return $this->googleBatchServiceGmails[$email];
        }

        $googleServiceGmail = new \Google_Service_Gmail($this->serviceAccount->getGoogleBatchClientForEmail($email));
        $this->googleBatchServiceGmails[$email] = $googleServiceGmail;

        return $googleServiceGmail;
    }
1202586
public function getSenderActivationMail($email)
    {
        if (empty($email)) {
            return $this->handleError('Empty email');
        }

        $requestResult = $this->sendRequest('senders/' . $email . '/code');

        return $this->handleResult($requestResult);
    }
1067862
static function email2user($email)
    {
        $rcube = rcube::get_instance();
        $plugin = $rcube->plugins->exec_hook('email2user',
            array('email' => $email, 'user' => NULL));

        return $plugin['user'];
    }
1361194
public function getEmailGlobalInfo($email)
    {
        if (empty($email)) {
            return $this->handleError('Empty email');
        }

        $requestResult = $this->sendRequest('emails/' . $email);

        return $this->handleResult($requestResult);
    }
781734
public function isEmailUnique($email)
    {
		$repo   = $this->getRepository( 'erdiko\users\entities\User' );
		$result = $repo->findBy( array( 'email' => $email ) );

		if (empty($result)) {
			$response = 0;
		} else {
			$response = (bool) ( count( $result ) == 0 );
		}

		return $response;
	}
433837
public function findOneByEmailAndWebsiteId($email, $websiteId)
    {

        // initialize the params
        $params = array(
            MemberNames::EMAIL      => $email,
            MemberNames::WEBSITE_ID => $websiteId
        );

        // if not, try to load the customer with the passed email and website ID
        $this->customerByEmailAndWebsiteIdStmt->execute($params);
        return $this->customerByEmailAndWebsiteIdStmt->fetch(\PDO::FETCH_ASSOC);
    }