Email not sending on latest version

Hello,
I had updated Invoice Ninja to the latest version and found out that email was not sent. Is there any issue with the latest version?

Is below settings correct?

MAIL_MAILER=smtp
MAIL_HOST=mail.ourdomain
MAIL_PORT=465
MAIL_USERNAME=“our email”
MAIL_PASSWORD=“password”
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=“our email”
MAIL_FROM_NAME=“Sender name”

Thanks & regards,
Azlan Y

Hi,

I don’t believe there are any issues with the latest version of the app.

Have you seen the info here:

Hi Hillel,
The fact is after updating Invoice Ninja, my client didn’t receive any email from us. This has been confirmed when trying to send an invoice to a dummy client.

@david do you have any ideas?

Hi @azlan.yhasser

in case you are using InvoiceNinja via Docker:

I had a docker based network setup which has denied internet connection for the docker container “app”.
I could not receive any emails sent via IN. Sending Emails seem to be done directly from the “app” container, so I had to enable internet connection for it. As soon as this has been done, I was able to receive emails.

version: "3"

services:
  invoiceninja:
    image: invoiceninja/invoiceninja:latest
    container_name: invoiceninja
    env_file: .env
    restart: always
    volumes:
      - ./config/hosts:/etc/hosts:ro
      - ./docker/app/public:/var/www/app/public:rw,delegated
      - ./docker/app/storage:/var/www/app/storage:rw,delegated
    networks:
      - traefik_ext # <-- I had to add the "public network"
      - ninja_int

  nginx-invoiceninja:
    image: nginx
    container_name: nginx-invoiceninja
    env_file: .env
    restart: always
    volumes:
      - ./config/nginx/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro
      - ./docker/app/public:/var/www/app/public:ro
    labels:
      # Enable Traefik
      - traefik.enable=true
      # Set Network to use
      - traefik.docker.network=traefik_ext
      # Enable gzip compression
      - traefik.http.middlewares.gzip.compress=true
      # Load dynamic config
      - traefik.http.routers.ninja-nginx.middlewares=secHeaders@file,gzip

      - traefik.http.routers.ninja-nginx.entrypoints=websecure
      - traefik.http.routers.ninja-nginx.rule=Host(`${APP_URL_CLEAN}`)
      - traefik.http.routers.ninja-nginx.tls=true
      - traefik.http.routers.ninja-nginx.tls.certResolver=cloudflare
    depends_on:
      - invoiceninja
    networks:
      - traefik_ext
      - ninja_int

networks:
  traefik_ext:
    external: true
  ninja_int:
    external: true

Best regards
Access-InTech

1 Like

Hi @Access-InTech
Thanks for your reply and suggestions. My IN is currently installed in a web hosting.
However, finally solved the email issue when sending email from IN by removing MX from Cloudflare. The domain MX dns was mistakenly added into Cloudflare proxy that serves no mail traffic.

Thanks.

1 Like