Send test email / debug email not sent

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Send test email / debug email not sent

Post by sixbynine » 12 Jan 2018, 18:16

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 !

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Send test email / debug email not sent

Post by aimeos » 12 Jan 2018, 18:18

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: Send test email / debug email not sent

Post by sixbynine » 13 Jan 2018, 15:14

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 !

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Send test email / debug email not sent

Post by aimeos » 15 Jan 2018, 10:33

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: Send test email / debug email not sent

Post by sixbynine » 15 Jan 2018, 22:55

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.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Send test email / debug email not sent

Post by aimeos » 15 Jan 2018, 23:01

Which Aimeos version are you using?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: Send test email / debug email not sent

Post by sixbynine » 16 Jan 2018, 07:41

Hello,

I'm using :

"laravel/framework": "5.5.*"
"aimeos/aimeos-laravel": "2018.01.1"

Thank you !

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Send test email / debug email not sent

Post by aimeos » 16 Jan 2018, 09:12

The error doesn't occur in the standard setup. Did you overwrite the e-mail HTML client or the corresponding template?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: Send test email / debug email not sent

Post by sixbynine » 17 Jan 2018, 08:36

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.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Send test email / debug email not sent

Post by aimeos » 17 Jan 2018, 09:46

Can you post the stack trace for the exception? Should be in the madmin_log table.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply