Laravel provides a clean, simple API over the popular SwiftMailer library. The mail configuration file isapp/config/mail.php
, and contains options allowing you to change your SMTP host, port, and credentials, as well as set a global from
address for all messages delivered by the library. You may use any SMTP server you wish. If you wish to use the PHP mail
function to send mail, you may change the driver
to mail
in the configuration file. A sendmail
driver is also available.
SMTP or Simple Mail Transfer Protocol enables you to send emails through the specified server from standard email sending software. When you send an email from a software and want to send using your Zoho Mail account, you need to configure the specified Zoho SMTP server settings to be able to send emails.
Set the mail setting on the laravel app/config/mail.php
return array( 'driver' => 'smtp', 'host' => 'smtp.zoho.com', 'port' => 465, 'from' => array('address' => 'your-email-address', 'name' => 'your-email-name'), 'encryption' => 'ssl', 'username' => 'your-email-acoount', 'password' => 'your-email-password', 'sendmail' => '/usr/sbin/sendmail -bs', 'pretend' => false, );
for configuration using TLS, change the port and the encryption set
Port: 587 Security Type: TLS