am trying to send email from my laravel app after a user registers but it keeps giving me this error in the network tab,
"message": "Connection could not be established with host mail.i-scbank.com [ #0]
The app is hosted in a shared hosting(cpanel)
i tried with mailtrap and it worked, but when i tried it with my mail server, i got that error message, i even created a new email account, but it still did not work,
Here is my .env code
MAIL_DRIVER=smtp
MAIL_HOST=mail.eloike.com
MAIL_PORT=587
MAIL_USERNAME=info@eloike.com
MAIL_PASSWORD=*****
MAIL_FROM_ADDRESS=info@eloike.com
MAIL_ENCRYPTION=tls
MAIL_FROM_NAME="Stones"
here is my config/mail.php code
<?php
return [
'driver' => env('MAIL_DRIVER', 'smtp'),
'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'),
'sendmail' => '/usr/sbin/sendmail -bs',
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
];
pls what am i doing wrong and how can i make the email to be sending
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire