I'm trying to get SendGrid to send emails. It is currently working on my localhost but as soon as I put it on the my server I get an error (seen in the screenshot below).
Here is my configuration values.
.env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=587
MAIL_USERNAME=myusername
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls
app/config/mail.php
'driver' => env('MAIL_DRIVER', 'mail'),
'host' =>env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'from' => ['address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),],
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire