Page 1 of 3
Send test email / debug email not sent
Posted: 12 Jan 2018, 18:16
by sixbynine
Hello,
I'm trying to get the confirmation e-mail sent after a purchase is completed but I did not succeed for the moment. Eveything works fine with the purchase, I get the message:
"Confirmation
Thank you for your order.
We received your payment and an e-mail with the order details will be sent to you within the next few minutes."
But the e-mail is never received.
What is the best way to debug an "email not sent" with Aimeos? Could I find an error logged somewhere?
I added the smtp details in the .env and mail.php and
Code: Select all
'email' => array(
'from-email' => 'test@test.com',
'from-name' => 'test',
),
in the shop.php config file :
Maybe I forgot something else?
What do you suggest?
Thank you very much !
Re: Send test email / debug email not sent
Posted: 12 Jan 2018, 18:18
by aimeos
You are using Laravel? You have to set up the cronjobs, especially the "order/email/payment" job controller:
https://aimeos.org/docs/Laravel/Configure_cronjobs
Re: Send test email / debug email not sent
Posted: 13 Jan 2018, 15:14
by sixbynine
Hello,
Thank you very much for your answer.
I just enabled the cronjb with the artisan aimeos:jobs "order/email/payment " command (it wasn't) and I cleared the cache.
But I still did not receive any e-mails.
I guess I need to check :
- If I forgot something in the e-mail or payment config
- If the cronjobs are well processed (I don't know how)
- If an error occurs and is returned when sending an e-mail (I don't know how)
Thank you a lot in advance !
Re: Send test email / debug email not sent
Posted: 15 Jan 2018, 10:33
by aimeos
You should have a look into the mshop_order_status table. If there's a record for "email-sent" then the e-mail was at least handed over to the mail server.
Re: Send test email / debug email not sent
Posted: 15 Jan 2018, 22:55
by sixbynine
Thank you very much for your answer.
There is no record for "email-sent" in the database...
And I finally found an error logged: Error while trying to send payment e-mail for order ID "xx" and status "6": No value for key "summaryBasket" found.
Re: Send test email / debug email not sent
Posted: 15 Jan 2018, 23:01
by aimeos
Which Aimeos version are you using?
Re: Send test email / debug email not sent
Posted: 16 Jan 2018, 07:41
by sixbynine
Hello,
I'm using :
"laravel/framework": "5.5.*"
"aimeos/aimeos-laravel": "2018.01.1"
Thank you !
Re: Send test email / debug email not sent
Posted: 16 Jan 2018, 09:12
by aimeos
The error doesn't occur in the standard setup. Did you overwrite the e-mail HTML client or the corresponding template?
Re: Send test email / debug email not sent
Posted: 17 Jan 2018, 08:36
by sixbynine
No, it's was a clean install... I only adapted it to work with Stripe... Like described in this post :
help-f15/stripe-payments-t1250.html#p5373
Maybe the "no value for summarybasket" problem is due to the fact i'm using "ai-payments" with Stripe for the checkout process?
Thank a lot for your help.
Re: Send test email / debug email not sent
Posted: 17 Jan 2018, 09:46
by aimeos
Can you post the stack trace for the exception? Should be in the madmin_log table.