Unable to send email, using Sub Domain

Version v5.12.8, installed via Cpanel using subdomain. I recently installed Ninja Invoice, and I can’t figure out how to send invoices via emails. A popup appears as Queued. Really need some help with this.

Thanks

Hi,

Can you please post a screenshot of the health check dialog?

Here is the screenshot.

Thanks! It looks like email is set to ‘log’, I suggest checking the mail settings in the .env file.

Hi, is this where I add the server information?
OPENEXCHANGE_APP_ID=
MAIL_PORT=0
MAIL_ENCRYPTION=
MAIL_HOST=
MAIL_USERNAME=
MAIL_FROM_NAME=
MAIL_FROM_ADDRESS=
MAIL_PASSWORD=

Or this?
MAIL_MAILER=“log”
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

Both, you’ll want to change log to smtp and fill in the details.

Hi hillel, I have tried all I know how to set up the .env file, and still will not send. I get an error code mailform json payload error. Question, why would I need to edit the .env file when in the settings i can select the smtp mailer as my option? Why can’t I use it there? Thanks for your help.

@david can you please advise?

Is it possible I can provide login credentials to have someone set up my emails for smtp for me? I’m about to throw in the towel! :frowning:

Sorry, we can’t set it up for you.

I believe the values configured in the app will override the settings in the .env file.

Do you see any errors storage/logs or in the system_logs table?

When I try to save in the email settings, I get the error message at the top of page. Malformed JSON payload.

No, no errors listed in the error log, only that I’ve signed into the database.

That seems like a bug, feel free to ask in a discussion on GitHub.

Do you see a difference using the desktop or mobile app?