fuel/fuel/packages/email/classes/email/driver/smtp.php
protected function smtp_authenticate()
	{
		// Encode login data
		$username = base64_encode($this->config['smtp']['username']);
		$password = base64_encode($this->config['smtp']['password']);

		try
		{
			// Prepare login
			$this->smtp_send('AUTH LOGIN', 334);

			// Send username
			$this->smtp_send($username, 334);

			// Send password
			$this->smtp_send($password, 235);

		}
		catch(\SmtpCommandFailureException $e)
		{
			throw new \SmtpAuthenticationFailedException('Failed authentication.');
		}

	}
protected function smtp_authenticate()
	{
		// Encode login data
		$username = base64_encode($this->config['smtp']['username']);
		$password = base64_encode($this->config['smtp']['password']);

		try
		{
			// Prepare login
			$this->smtp_send('AUTH LOGIN', 334);

			// Send username
			$this->smtp_send($username, 334);

			// Send password
			$this->smtp_send($password, 235);

		}
		catch(\SmtpCommandFailureException $e)
		{
			throw new \SmtpAuthenticationFailedException('Failed authentication.');
		}

	}
protected function smtp_authenticate ( ) { // Encode login data $ username = base64_encode ( $ this -> config [ 'smtp' ] [ 'username' ] ) ; $ password = base64_encode ( $ this -> config [ 'smtp' ] [ 'password' ] ) ; try { // Prepare login $ this -> smtp_send ( 'AUTH LOGIN' , 334 ) ; // Send username $ this -> smtp_send ( $ username , 334 ) ; // Send password $ this -> smtp_send ( $ password , 235 ) ; } catch ( \ SmtpCommandFailureException $ e ) { throw new \ SmtpAuthenticationFailedException ( 'Failed authentication.' ) ; } }
Performs authentication with the SMTP host
Performs authentication with the SMTP host