User Tools

Site Tools


Send mail with PHP Laravel/swiftmailer using Microsoft

In .env file change


In conf/mail.php, line 59 set MAIL_FROM_ADDRESS to be same as in .env file MAIL_USERNAME value

'host' => env('MAIL_HOST', 'your-mail-host'),
  'from' => [
        'address' => env('MAIL_FROM_ADDRESS', ''),
        'name' => env('MAIL_FROM_NAME', 'Your User Name'),

.env file


Tested on

See also


wiki/send_mail_php_laravel_swiftmailer_using_microsoft_smtp_office365.txt · Last modified: 2021/04/08 15:34 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki