Problem with mail verification

Posted 2 months ago by Eloi

Hi ! I'm new to Laravel and I try to make mail verification work. Actually, it worked with mailtrap, but when I try to put my gmail account no mail is sent. Here is my .env:

MAIL_DRIVER=smtp MAIL_HOST=smtp.googlemail.com MAIL_PORT=465 [email protected] MAIL_PASSWORD=gmail456C6F69. MAIL_ENCRYPTION=ssl

and here is my mail.php:

| Mail Driver
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
| Supported: "smtp", "sendmail", "mailgun", "mandrill", "ses",
|            "sparkpost", "log", "array"

'driver' => env('MAIL_DRIVER', 'smtp'),

'host' => env('MAIL_HOST', 'smtp.googlemail.com'),

'port' => env('MAIL_PORT', 465),

'from' => [
    'address' => env('MAIL_FROM_ADDRESS', '[email protected]'),
    'name' => env('MAIL_FROM_NAME', 'Example'),

'encryption' => env('MAIL_ENCRYPTION', 'ssl'),

'username' => env('MAIL_USERNAME'),

'password' => env('MAIL_PASSWORD'),

'sendmail' => '/usr/sbin/sendmail -bs',

'markdown' => [
    'theme' => 'default',

    'paths' => [

'log_channel' => env('MAIL_LOG_CHANNEL'),

Hope you can help me. Thanks !

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.