By default, the system is set up to log all mails into files. You have to configure this settings to send emails. You may use any of this supported services:
sparkpost. To configure email, open the
.env file and update these keys with your values.
If you don’t have a mail server or just testing the application you can fake the actual sending of emails. zCart has a
log driver and the
Mailtrap driver for this job.
Instead of sending your emails, the log mail driver will write all email messages to your log files for inspection. All emails will be stored in
storage/logs/zCart-date.log files. The default email driver is
log, so you don’t have to do anything to configure this driver.
Finally, you may use a service like Mailtrap and the
smtp driver to send your email messages to a “dummy” mailbox where you may view them in a true email client. This approach has the benefit of allowing you to actually inspect the final emails in Mailtrap’s message viewer.
. . . MAIL_DRIVER=log MAIL_HOST=smtp.example.com MAIL_PORT=587 MAIL_USERNAME=user MAIL_PASSWORD=secret MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESSfirstname.lastname@example.org MAIL_FROM_NAME=No-Reply MAIL_REPLY_TO_ADDRESSemail@example.com MAIL_REPLY_TO_NAME=Reply . . .
MAIL_FROM_NAME will be used to sent email by your marketplace where no specific sender information available to use.