@Jyoti could you please point me the section in the link you shared which is pertinent to my question - "REST APIs to create or update Product?"
If you read the link, all it list the GET.
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.
Seems similar to issue as in this post https://forums.bagisto.com/topic/564/verification-email-cannot-send/6
return $this->to($this->verificationData['email']) ->from(Config::get('mail.from.address')) ->subject(trans('shop::app.mail.customer.verification.subject')) ->view('shop::emails.customer.verification-email')->with('data', ['email' => $this->verificationData['email'], 'token' => $this->verificationData['token']]);
@rahul I am using Bagisto v1.1.2 and facing same issue in production (works fine in dev env).
I checked the VerificationEmail.php and above changes u suggested are not there. Wondering whether changes u suggested are still valid to fix this issue.
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.
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 tried changing the APP_URL to https://<host address> as per this post and then restarted the server using command
sudo systemctl start apache2.service
But still https://<host address> throws below error
This site can’t provide a secure connection126.96.36.199 sent an invalid response. ERR_SSL_PROTOCOL_ERROR