Hi,
I’ve installed InvoiceNinja through Softaculous and did the front-end setup. When I tried to email an invoice, the message at the bottom of the screen said “Successfully emailed invoice” (which it did after every unsuccessful event) but the client didn’t get it.
I started searching online and found out that I need to update the .env file.
Here is what I put there:
MAIL_MAILER=smtp
MAIL_HOST=‘mail.mydomain.com’
MAIL_PORT=465
MAIL_USERNAME=‘invoices@mydomain.com’
MAIL_PASSWORD=‘plain_text_password’
MAIL_ENCRYPTION=‘tls’
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME=
I tried without apostrophes as well.
Then I found out I had to run “php artisan optimize” though terminal, which I did in the /ninja directory and got:
Configuration cache cleared!
Configuration cached successfully!
Route cache cleared!
Routes cached successfully!
Files cached successfully!
Then I tried to sent the invoice to a TEST CLIENT that I created with one of my own email addresses.
There is nothing at all with today’s date in the storage/logs/laravel.log (it’s the only file in this folder apart from .gitignore.
I check under Dashboard->System logs and Dashboard->Activity and saw the following messages:
Email > Failure
Email Send * TEST CLIENT
25-April-2021 4:04:42 PM
and
I tried to search for 'Address in mailbox given [] does not comply with RFC 2822" and gathered from what I found that [] was supposed to contain my MAIL_USERNAME from .env. But it is there, it’s not empty.
I wonder what else still needs to be done to enable sending invoices by email.
And why does it say under Activity that I emailed the invoice to myself rather than my TEST CLIENT?