$options->mail_transport, 'host' => $options->mail_host, 'port' => $options->mail_port, 'encryption' => (property_exists($options, 'mail_encryption')) ? $options->mail_encryption : null, 'username' => (property_exists($options, 'mail_encryption')) ? $options->mail_username : null, 'password' => (property_exists($options, 'mail_encryption')) ? $options->mail_password : null, ]); $mailer->alwaysFrom($options->email, $options->representative); return $mailer; } }