The mail setup on AWS instance doesnot work for Bagisto
-
We have setup smtp mail settings for our application.
The registration and other things email works but when we send email from Bagisto does not work.Even some one raised bug in Aug 2020 but no response yet on the same.
-
@sgrprasad
you need to add the aws smtp details inside .env file.. have you done with this?? -
@Vaishali-Agarwal
The application is running on AWS EC2 instance
I have setup the SMTP configuration in .env file
Except Bagisto Cart order i am receiving emails for registration of user etc which is not part of Bagisto. my .env has the following SMTP setupMAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=587
MAIL_USERNAME=**********
MAIL_PASSWORD=**********
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="ADMIN" -
@sgrprasad
add the AWS details in .env file as added in this post.https://forums.bagisto.com/topic/1995/aws-ses-email-configuration-in-bagisto
-
@Vaishali-Agarwal
The Mail Host is different and not the AWS SES different email SMTP we use
cleared the cache using the command from project's root php artisan config:cache
and not using the [email protected] in my code.
But emails not shooting even after cache clear as well.
Should we deliberately use the following format in .env?MAIL_DRIVER=smtp
MAIL_HOST=email-smtp.us-west-2.amazonaws.com
MAIL_PORT=587
MAIL_USERNAME=ccdsfsdcs
MAIL_PASSWORD=ddddsadsadsadadsa
MAIL_ENCRYPTION=tls
[email protected]
[email protected]
MAIL_FROM_NAME=admin -
@sgrprasad
No, in the above example Mail_DRIVER, Mail_PORT, Mail_encryption will be the same and the rest of details may change based on credentials.
also, make sure the password should not contain any special character -
@Vaishali-Agarwal
Hi Vaishali,Same thing is set, even in my mailtrap account pwd does not have a special character but still not able to send email. There were no errors but not receiving email when order is success.
-
@sgrprasad
could you check the error on log file at path storage/logs/laravel.log