Jyxo\Mail\Sender::setSmtp PHP Method

setSmtp() public method

Sets SMTP parameters.
public setSmtp ( string $host, integer $port = 25, string $helo = '', string $user = '', string $password = '', integer $timeout = 5 ) : self
$host string Hostname
$port integer Port
$helo string HELO value
$user string Username
$password string Password
$timeout integer Connection timeout
return self
    public function setSmtp(string $host, int $port = 25, string $helo = '', string $user = '', string $password = '', int $timeout = 5) : self
    {
        $this->smtpHost = $host;
        $this->smtpPort = $port;
        $this->smtpHelo = !empty($helo) ? $helo : $this->getHostname();
        $this->smtpUser = $user;
        $this->smtpPsw = $password;
        $this->smtpTimeout = $timeout;
        return $this;
    }