Order email not send

Questions around the Aimeos bundle for the Symfony framework
Forum rules
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
LorenzoM
Posts: 6
Joined: 22 Aug 2018, 10:51

Order email not send

Post by LorenzoM » 22 Aug 2018, 12:35

Hi everybody!
After following all setup instruction and setting all issue I made some order in my shop but I never received any email.
Cronjob is setting and don't return any error and jobs like "order/cleanup" works well.

How can I check if everything it's ok? There's the possibility to send manual email?

The only payment method available is PostPay provider

More information to understand the problem:
- Symfony 3.4.14
- Aimeos installed last week
- PHP 5.5.9
- Ubuntu 4.23

parameters.yml
mailer_transport: smtp
mailer_host: smtp.*******.it
mailer_user: **@*****.it
mailer_password: ****
secret: **-symfony
router.request_context.host: shop.****.it
router.request_context.scheme: http
router.request_context.base_url:

mailer_* work because are the same of another symfony project

config.yml
# Swiftmailer Configuration
swiftmailer:
transport: '%mailer_transport%'
host: '%mailer_host%'
username: '%mailer_user%'
password: '%mailer_password%'
spool: { type: memory }

aimeos_shop:
mshop:
customer:
manager:
name: FosUser
password:
name: Bcrypt
client:
html:
email:
payment:
from-email: **@*******.it
from-name: Shop
bcc-email: ****@****.it
common:
content:
baseurl: http://shop.****.it/
template:
baseurl: "%kernel.root_dir%/../web/bundles/aimeosshop/themes/elegance"

Hope give you all information to help me.

Many thanks!
Lorenzo

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

Re: Order email not send

Post by aimeos » 23 Aug 2018, 19:18

Are there any e-mail related errors in the log panel after you've executed the "order/email/payment" job?
Is there an "email-sent" entry in the mshop_order_status table for your orders?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

LorenzoM
Posts: 6
Joined: 22 Aug 2018, 10:51

Re: Order email not send

Post by LorenzoM » 24 Aug 2018, 06:49

aimeos wrote:Are there any e-mail related errors in the log panel after you've executed the "order/email/payment" job?
Is there an "email-sent" entry in the mshop_order_status table for your orders?
1) no
2) no, I paste here all records about this order

mshop_order
id baseid siteid type datepayment datedelivery statuspayment statusdelivery relatedid cdate cmonth cweek cwday chour ctime mtime editor;
3 3 1 web 2018-08-22 15:41:51 \N 5 -1 \N 2018-08-22 2018-08 2018-34 3 15 2018-08-22 15:41:51 2018-08-22 15:41:51 v**i

mshop_order_status
id parentid siteid type value mtime ctime editor;
13 3 1 stock-update 1 2018-08-22 15:41:51 2018-08-22 15:41:51 v**i
14 3 1 coupon-update 1 2018-08-22 15:41:51 2018-08-22 15:41:51 v**i;
15 3 1 status-payment 5 2018-08-22 15:41:51 2018-08-22 15:41:51 v**i;
16 3 1 email-payment 5 2018-08-22 15:42:01 2018-08-22 15:42:01 aimeos:jobs

I suppose problem is "order_status=5" because I choose a PostPay payment method.
I need a payment method that provides payment when the customer receives the goods and the order confirmation email must start as soon as the checkout is done

Thanks,
Lorenzo

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

Re: Order email not send

Post by aimeos » 24 Aug 2018, 14:12

The order confirmation e-mail was sent successfully because of this entry in mshop_order_status:

Code: Select all

16	3	1	email-payment	5	2018-08-22 15:42:01	2018-08-22 15:42:01	aimeos:jobs
Your problem must be somewhere else.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

LorenzoM
Posts: 6
Joined: 22 Aug 2018, 10:51

Re: Order email not send

Post by LorenzoM » 24 Aug 2018, 14:17

Thanks for your reply.

Is there a log or something I can check to figure out where the error is?
Like "order/email/payment" in debug mode....

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

Re: Order email not send

Post by aimeos » 24 Aug 2018, 14:25

Like said, the e-mail was sucessfully handed over to the swiftmailer service in Symfony so there's no debug information in Aimeos. You have to activate debugging there to find out where the order configuration is gone.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

LorenzoM
Posts: 6
Joined: 22 Aug 2018, 10:51

Re: Order email not send

Post by LorenzoM » 27 Aug 2018, 14:32

aimeos wrote:The order confirmation e-mail was sent successfully because of this entry in mshop_order_status:

Code: Select all

16	3	1	email-payment	5	2018-08-22 15:42:01	2018-08-22 15:42:01	aimeos:jobs
Your problem must be somewhere else.
Hello again.
today I did some tests on Swiftmail via FOS user bundles like the reset of the password and the emails arrived correctly.
I checked the configurations again and made a new order but these emails still do not arrive.
I read on some Stack Overflow that to be sure that the mail has started in the mshop-order-status table must be written "email-sent".
Do you have any idea what I could check or change again?

Post Reply