Customer signup email not getting sent out in production
I have configured mailtrap.io to test the email feature. Have used same configuration in dev and production env. While emails are being sent out successfully in dev env, it is not so in production.
User registration msg in production is as below. Pls not that msg does not even says "an email has been sent".
I had not enabled email notification flag for Customer. Hence there was no attempt to send verification email.
But after enabling the flag, I get below msg "verification email unsent..." What cud possible be wrong now. I tried and /usr/bin/sendmail is also setup properly in GCP VM.
Seems similar to issue as in this post https://forums.bagisto.com/topic/564/verification-email-cannot-send/6
can we get your website url if it's on live server so that we can check this on real time.
Worked with @Vaishali-Agarwal (thanks a ton) to get to the root of the issue. Issues seems in setting the values in .env file.
#MAIL_MAILER=smtp --removed this line
MAIL_FROM_NAME=<OneWordNotSpace> -- I had it as "FName LName"
After this run "php artisan config:cache"
Above changes did the trick for me.