src/Context/Email/RawEmailContext.php
public function getAccount($email)
    {
        $accounts = $this->getTqParameter('email_accounts');

        if (empty($accounts[$email])) {
            throw new \InvalidArgumentException(sprintf(
                'An account for "%s" email address is not defined. Available addresses: "%s".',
                $email,
                implode(', ', array_keys($accounts))
            ));
        }

        return $accounts[$email];
    }
public function getAccount($email)
    {
        $accounts = $this->getTqParameter('email_accounts');

        if (empty($accounts[$email])) {
            throw new \InvalidArgumentException(sprintf(
                'An account for "%s" email address is not defined. Available addresses: "%s".',
                $email,
                implode(', ', array_keys($accounts))
            ));
        }

        return $accounts[$email];
    }
@param string $email

@throws \InvalidArgumentException

@return array