Unable to send emails to created USER and Clients

Hello,

I am a new user and I am having problems with Invoices emails and emailing user that was created. these emails seems as though they are sent bit never recieved.

  1. I have set invoice ninja emails to “default”
  2. I have the .env settings all correct. My username, password & all other settings are correct. I use these settings ok with my main website and they work fine.
  3. I have set the QUEUE_CONNECTION=sync
  4. I just want the emails to send automatically when I press the send button in Invoice Ninja.
  5. When I click the send button it shows as sent but no emails are ever sent or received.

No matter what I do no emails will send. I have tried everything.

Any help here would be much appreciated as i really need to get this working.

Please advise, Petrus

here is my .env file codes

APP_NAME=“Invoice Ninja”
APP_ENV=production
APP_KEY=base64:=
APP_DEBUG=“false”

APP_URL="https://fin.stemsvg.org/public"

DB_CONNECTION=“mysql”
MULTI_DB_ENABLED=false

DB_HOST=“localhost”
DB_DATABASE=“”
DB_USERNAME=“”
DB_PASSWORD=“”
DB_PORT=“3306”

DEMO_MODE=false

BROADCAST_DRIVER=log
LOG_CHANNEL=stack
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER="smtp"
MAIL_HOST="ds1370.tmddedicated.com"
MAIL_PORT="25"
MAIL_USERNAME=""
MAIL_PASSWORD=""
MAIL_ENCRYPTION="ssl"
MAIL_FROM_ADDRESS="admin@fin.stemsvg.org"
MAIL_FROM_NAME="System"

POSTMARK_API_TOKEN=“”
REQUIRE_HTTPS=“true”

GOOGLE_MAPS_API_KEY=
ERROR_EMAIL=
TRUSTED_PROXIES=

NINJA_ENVIRONMENT=“selfhost”

#options - snappdf / phantom / hosted_ninja
PDF_GENERATOR=hosted_ninja

PHANTOMJS_KEY=‘a-demo-key-with-low-quota-per-ip-address’
PHANTOMJS_SECRET=secret

UPDATE_SECRET=t5ri1o

DELETE_PDF_DAYS=60
DELETE_BACKUP_DAYS=60

COMPOSER_AUTH=‘{“github-oauth”: {“github.com”: “${{ secrets.GITHUB_TOKEN }}”}}’

GOOGLE_PLAY_PACKAGE_NAME=
APPSTORE_PASSWORD=

MICROSOFT_CLIENT_ID=
MICROSOFT_CLIENT_SECRET=
MICROSOFT_REDIRECT_URI=

APPLE_CLIENT_ID=
APPLE_CLIENT_SECRET=
APPLE_REDIRECT_URI=

Hi,

Are there any errors in the system log on the dashboard?

Note: we don’t recommend sharing passwords in this forum, I’ve removed them from your post but I suggest setting new passwords.

I ma just noticing that in the lower left that it states that crons need to be enabled. Where on the c-panel should that be enabled. Thanks

Here is a file of the cron on the server. Please advice. Thanks

I believe these are separate issues.

I suggest running the cron from the CLI without the >> part to check for errors. Note: the cron should be run every minute.

Ok, do you have any other suggestion for the email not being sent to the users and clients. I have updated the Cron.

I think I read someone use google as a workaround. Is that an option and if so how do you go about doing that?

Thank

Have you checked the system logs on the dashboard?

Yes, there is no information there. It’s empty.

@david do you have any suggestions?

It now saying that email is queued to be sent. Any suggestion

The crons do not send emails, the queue does, so if in your .env file you have

QUEUE_CONNECTION=database

then your queues are not working.

You can change

QUEUE_CONNECTION=sync

And then retry sending an email.

Hi the code that we have right now from the .env

BROADCAST_DRIVER=log
LOG_CHANNEL=stack
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

I am not seeing where it mentioned that QUEUE_CONNECTION=database

So based on your suggestion we have it correct and no email still showing.
Thanks

Are there any messages in storage/logs/laravel.log?

If there is nothing there, then the most likely issue is a permissions issue where the system is unable to write to either/or storage/ or public/storage

Here is what is in laravel.log

[2023-05-15 06:20:03] production.INFO: Performing Autobilling 2023-05-15 06:20:03
[2023-05-15 23:30:02] production.INFO: updating currencies
[2023-05-16 06:20:03] production.INFO: Performing Autobilling 2023-05-16 06:20:03

Is there no other suggestion that can be offered to get this sorted. Thanks

In the dashboard of the application, is there any details about email errors in either the Activity tab, or System Logs tab?

There is no errors that is showing in the activity tab or System Logs tab.

I am stumped here, just to confirm, no emails are sending out of the system?

The system should attempt to send immediately after you click send, and would report back instantly if there was a failure.

Can you confirm in the health check that the System Health says the Queue: sync please

image

Where would I locate this information. Thanks

Click the about icon in the lower left corner and then click health check