Page 1 of 1

my app don't send emails after make a purchase

Posted: 19 Oct 2017, 16:29
by JuanBarreto
i don't know, what i must to do, mi app don't send emails, i configured the cron jobs to send emails, edited my file .env, edited the file config/mail.php... so the app don't send emails

*this is my file .env

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=XXXXXXXXXX
MAIL_PASSWORD=XXXXXXXXXX
MAIL_ENCRYPTION = tls

*This is my file email.php

return [

/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
|
| Supported: "smtp", "sendmail", "mailgun", "mandrill", "ses",
| "sparkpost", "log", "array"
|
*/

'driver' => 'smtp',

/*
|--------------------------------------------------------------------------
| SMTP Host Address
|--------------------------------------------------------------------------
|
| Here you may provide the host address of the SMTP server used by your
| applications. A default option is provided that is compatible with
| the Mailgun mail service which will provide reliable deliveries.
|
*/

'host' => 'smtp.mailtrap.io',

/*
|--------------------------------------------------------------------------
| SMTP Host Port
|--------------------------------------------------------------------------
|
| This is the SMTP port used by your application to deliver e-mails to
| users of the application. Like the host we have set this value to
| stay compatible with the Mailgun e-mail application by default.
|
*/

'port' => 2525,

/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
*/

'from' => [
'address' => 'XX@YY.ZZ','name' => 'errgertgrtge5rge',
],

/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
|--------------------------------------------------------------------------
|
| Here you may specify the encryption protocol that should be used when
| the application send e-mail messages. A sensible default using the
| transport layer security protocol should provide great security.
|
*/

'encryption' => 'tls',

/*
|--------------------------------------------------------------------------
| SMTP Server Username
|--------------------------------------------------------------------------
|
| If your SMTP server requires a username for authentication, you should
| set it here. This will get used to authenticate with your server on
| connection. You may also set the "password" value below this one.
|
*/

'username' => 'XXXXXXXXXXXXX',

'password' => 'XXXXXXXXXXXXXX',

/*
|--------------------------------------------------------------------------
| Sendmail System Path
|--------------------------------------------------------------------------
|
| When using the "sendmail" driver to send e-mails, we will need to know
| the path to where Sendmail lives on this server. A default path has
| been provided here, which will work well on most of your systems.
|
*/

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

/*
|--------------------------------------------------------------------------
| Markdown Mail Settings
|--------------------------------------------------------------------------
|
| If you are using Markdown based email rendering, you may configure your
| theme and component paths here, allowing you to customize the design
| of the emails. Or, you may simply stick with the Laravel defaults!
|
*/

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

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

];

and this is my shop.php

return [

'routes' => [
// 'login' => ['middleware' => ['web']],
// 'jqadm' => ['prefix' => 'admin/{site}/jqadm', 'middleware' => ['web', 'auth']],
// 'extadm' => ['prefix' => 'admin/{site}/extadm', 'middleware' => ['web', 'auth']],
// 'jsonadm' => ['prefix' => 'admin/{site}/jsonadm', 'middleware' => ['web', 'auth']],
// 'jsonapi' => ['prefix' => 'jsonapi', 'middleware' => ['web', 'api']],
// 'account' => ['middleware' => ['web', 'auth']],
// 'default' => ['middleware' => ['web']],
// 'update' => [],
],

'page' => [
// 'account-index' => [ 'account/profile','account/history','account/favorite','account/watch','basket/mini','catalog/session' ],
// 'basket-index' => [ 'basket/standard','basket/related' ],
// 'catalog-count' => [ 'catalog/count' ],
// 'catalog-detail' => [ 'basket/mini','catalog/stage','catalog/detail','catalog/session' ],
// 'catalog-list' => [ 'basket/mini','catalog/filter','catalog/stage','catalog/lists' ],
// 'catalog-stock' => [ 'catalog/stock' ],
// 'catalog-suggest' => [ 'catalog/suggest' ],
// 'checkout-confirm' => [ 'checkout/confirm' ],
// 'checkout-index' => [ 'checkout/standard' ],
// 'checkout-update' => [ 'checkout/update' ],
],


'resource' => [
'db' => [
'adapter' => env('DB_CONNECTION', 'mysql'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '3306'),
'socket' => '',
'database' => env('DB_DATABASE', 'shopi'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', '1234'),
'stmt' => ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'"],
],
],


'admin' => [],

'client' => [
'html' => [
'basket' => [
'cache' => [
'enable' => false, // Disable basket content caching
],
],
'common' => [
'content' => [
'baseurl' => 'http://localhost.dev/',
],
'template' => [
// 'baseurl' => 'packages/aimeos/shop/themes/elegance',
],
],
'email'=>[
'from-email' => 'xxxxxxx',
'from-name' => 'YYYY',
],
],
],

'controller' => [
],

'i18n' => [
],

'madmin' => [
'cache' => [
'manager' => [
// 'name' => 'None', // Disable caching
],
],
'log' => [
'manager' => [
'standard' => [
// 'loglevel' => 7, // Enable debug logging into madmin_log table
],
],
],
],

'mshop' => [
],


'command' => [
],

'frontend' => [
],

'backend' => [
],

];
all data here is of test

Re: my app don't send emails after make a purchase

Posted: 23 Oct 2017, 11:29
by aimeos
Did you set up the "order/email/payment" cronjob like documented here:
https://aimeos.org/docs/Laravel/Configure_cronjobs