send email after order

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
mahmoud
Posts: 27
Joined: 27 Mar 2020, 22:01

send email after order

Post by mahmoud » 05 Jun 2020, 21:12

Hello,
"aimeos/aimeos-laravel": "2020.04.x-dev",
windows 10: 64
Laravel Framework 6.18.3

Email confiration:
.env

Code: Select all

MAIL_DRIVER=smtp
MAIL_HOST=mbox.freehostia.com
MAIL_PORT=465
MAIL_USERNAME=bugs@mydomain.com
MAIL_PASSWORD=xxxxxxxx
MAIL_ENCRYPTION=TLS
MAIL_FROM_ADDRESS=bugs@mydomain.com
MAIL_FROM_NAME="${APP_NAME}"
config/shop.php

Code: Select all

 'driver' => env('MAIL_DRIVER', 'smtp'),
  
    'host' => env('MAIL_HOST', 'bugs@mydomain.com'), // smtp

   

    'port' => env('MAIL_PORT', '465'), //smtp port

   

    'from' => [
        'address' => env('MAIL_FROM_ADDRESS', 'bugs@mydomain.com'),
        'name' => env('MAIL_FROM_NAME', 'DEVOshop'),
    ],

 

    'encryption' => env('MAIL_ENCRYPTION', 'TLS'),

   
    'username' => env('bugs@mydomain.com'),

    'password' => env('xxxxxxxxxx'),

  

    //'sendmail' => '/usr/sbin/sendmail -bs',

  

    'markdown' => [
        'theme' => 'default',

        'paths' => [
            resource_path('views/vendor/mail'),
        ],
    ],

 
    'log_channel' => env('MAIL_LOG_CHANNEL'),

 /// ajouté
 'stream' => [
    'ssl' => [
       'allow_self_signed' => true,
       'verify_peer' => false,
       'verify_peer_name' => false,
    ],
 ],
The operational configuration on thunderbie attached.

After :

Code: Select all

php artisan config:cache ;php artisan cache:clear ; php artisan aimeos:jobs "order/email/delivery order/email/payment order/email/voucher order/service/delivery subscription/export/csv customer/email/account"
the error displayed on the attached log image

after change to gmail configuration

Code: Select all

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=nycompte@gmail.com
MAIL_PASSWORD=Sxxxxxx
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=nycompte@gmail.com
MAIL_FROM_NAME="${APP_NAME}"
the error displayed on the attached log image GMAIL
Thank you very much!
Attachments
error GMAIL
error GMAIL
erreur gmail.JPG (29.19 KiB) Viewed 1388 times
the error displayed on the attached log image
the error displayed on the attached log image
erreur email.JPG (18.78 KiB) Viewed 1390 times
The operational configuration on thunderbie attached.
The operational configuration on thunderbie attached.
email_configuration.JPG (48.59 KiB) Viewed 1390 times

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

Re: send email after order

Post by aimeos » 06 Jun 2020, 10:45

Something regarding your mail server settings is incorrectly configured or the certificates on your local machine are not valid any more. The problem is neither related to Aimeos nor to Laravel itself.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply