I'm having some difficulties sending email.
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- ArthurHenrique
- Posts: 18
- Joined: 28 Jan 2021, 18:30
I'm having some difficulties sending email.
Could someone help me resolve this issue? I need my application to send an email to confirm the order to customers.
I know Aimeos does this, so far I've changed the following parameters in the .env file:
MAIL_DRIVER=
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME=
I also changed some parameters in the mail.php and I'm using SMTP.
Should I make any more changes to make it work? Because if the only thing that needs to be changed is the fields above, maybe I'm entering them wrongly.
Thanks in advance.
Enviroment:
Windows 10
PHP = 7.2
Laravel = 6.0
Aimeos = 2020.10
I know Aimeos does this, so far I've changed the following parameters in the .env file:
MAIL_DRIVER=
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME=
I also changed some parameters in the mail.php and I'm using SMTP.
Should I make any more changes to make it work? Because if the only thing that needs to be changed is the fields above, maybe I'm entering them wrongly.
Thanks in advance.
Enviroment:
Windows 10
PHP = 7.2
Laravel = 6.0
Aimeos = 2020.10
Re: I'm having some difficulties sending email.
Did you also set up the cronjob to send the emails, not only the email configuration?
https://aimeos.org/docs/latest/laravel/ ... ery-minute
https://aimeos.org/docs/latest/laravel/ ... ery-minute
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- ArthurHenrique
- Posts: 18
- Joined: 28 Jan 2021, 18:30
Re: I'm having some difficulties sending email.
I didn't know the need for the cron job, but now I'm trying to fix it. I would like to know how to pass the cron job command correctly, could someone explain it to me in more detail, as it is not working correctly with the documentation command, should I make some change somewhere? Maybe in the path to some specific directory...
* * * * * php /path/to/artisan aimeos:jobs "order/export/csv order/email/delivery order/email/payment order/email/voucher order/service/delivery subscription/export/csv customer/email/account"
* * * * * php /path/to/artisan aimeos:jobs "order/export/csv order/email/delivery order/email/payment order/email/voucher order/service/delivery subscription/export/csv customer/email/account"
Re: I'm having some difficulties sending email.
You have to adapt "/path/to/artisan" to the absolute path of your application.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- ArthurHenrique
- Posts: 18
- Joined: 28 Jan 2021, 18:30
Re: I'm having some difficulties sending email.
I believe it is now correct, however I'm getting an error message on my host email :
<br />
<b>Fatal error</b>: Directive 'register_globals' is no longer available in PHP in <b>Unknown</b> on line <b>0</b><br />
What could be the problem?
Enviroment:
Windows 10
PHP = 7.4
Laravel = 6.0
Aimeos = 2020.10
Host Environment:
PHP Server = 7.4
Linux
<br />
<b>Fatal error</b>: Directive 'register_globals' is no longer available in PHP in <b>Unknown</b> on line <b>0</b><br />
What could be the problem?
Enviroment:
Windows 10
PHP = 7.4
Laravel = 6.0
Aimeos = 2020.10
Host Environment:
PHP Server = 7.4
Linux
Re: I'm having some difficulties sending email.
Seems like the php.ini used for the CLI command is very old and has "register_globals" setting still enabled. Execute
on your server to see which PHP version is used. Many hoster have several PHP versions installed and you have to select a newer one by hand, e.g. "/usr/bin/php74"
Code: Select all
php -v
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star