mail.php (3812B)
1 <?php 2 3 return [ 4 5 /* 6 |-------------------------------------------------------------------------- 7 | Default Mailer 8 |-------------------------------------------------------------------------- 9 | 10 | This option controls the default mailer that is used to send any email 11 | messages sent by your application. Alternative mailers may be setup 12 | and used as needed; however, this mailer will be used by default. 13 | 14 */ 15 16 'default' => env('MAIL_MAILER', 'smtp'), 17 18 /* 19 |-------------------------------------------------------------------------- 20 | Mailer Configurations 21 |-------------------------------------------------------------------------- 22 | 23 | Here you may configure all of the mailers used by your application plus 24 | their respective settings. Several examples have been configured for 25 | you and you are free to add your own as your application requires. 26 | 27 | Laravel supports a variety of mail "transport" drivers to be used while 28 | sending an e-mail. You will specify which one you are using for your 29 | mailers below. You are free to add additional mailers as required. 30 | 31 | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", 32 | "postmark", "log", "array", "failover" 33 | 34 */ 35 36 'mailers' => [ 37 'smtp' => [ 38 'transport' => 'smtp', 39 'url' => env('MAIL_URL'), 40 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 41 'port' => env('MAIL_PORT', 587), 42 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 43 'username' => env('MAIL_USERNAME'), 44 'password' => env('MAIL_PASSWORD'), 45 'timeout' => null, 46 'local_domain' => env('MAIL_EHLO_DOMAIN'), 47 ], 48 49 'ses' => [ 50 'transport' => 'ses', 51 ], 52 53 'mailgun' => [ 54 'transport' => 'mailgun', 55 // 'client' => [ 56 // 'timeout' => 5, 57 // ], 58 ], 59 60 'postmark' => [ 61 'transport' => 'postmark', 62 // 'client' => [ 63 // 'timeout' => 5, 64 // ], 65 ], 66 67 'sendmail' => [ 68 'transport' => 'sendmail', 69 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), 70 ], 71 72 'log' => [ 73 'transport' => 'log', 74 'channel' => env('MAIL_LOG_CHANNEL'), 75 ], 76 77 'array' => [ 78 'transport' => 'array', 79 ], 80 81 'failover' => [ 82 'transport' => 'failover', 83 'mailers' => [ 84 'smtp', 85 'log', 86 ], 87 ], 88 ], 89 90 /* 91 |-------------------------------------------------------------------------- 92 | Global "From" Address 93 |-------------------------------------------------------------------------- 94 | 95 | You may wish for all e-mails sent by your application to be sent from 96 | the same address. Here, you may specify a name and address that is 97 | used globally for all e-mails that are sent by your application. 98 | 99 */ 100 101 'from' => [ 102 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 103 'name' => env('MAIL_FROM_NAME', 'Example'), 104 ], 105 106 /* 107 |-------------------------------------------------------------------------- 108 | Markdown Mail Settings 109 |-------------------------------------------------------------------------- 110 | 111 | If you are using Markdown based email rendering, you may configure your 112 | theme and component paths here, allowing you to customize the design 113 | of the emails. Or, you may simply stick with the Laravel defaults! 114 | 115 */ 116 117 'markdown' => [ 118 'theme' => 'default', 119 120 'paths' => [ 121 resource_path('views/vendor/mail'), 122 ], 123 ], 124 125 ];