danhper / opencov

Open source code coverage history webapp
http://demo.opencov.com
MIT License
317 stars 42 forks source link

SMTP fails silently #32

Open etienne-napoleone opened 4 years ago

etienne-napoleone commented 4 years ago

Activated sign-ups from the admin panel with authorized domains Signed up with an email from an authorized domain. Needs to confirm account via email but never received any. No error or messages in the logs regarding that. Didn't tried without specifying authorized domains. Email is a gmail account using google smtp server with tls enabled auth

Config:

use Mix.Config

config :opencov, Opencov.Endpoint,
  http: [port: 4000],
  url: [scheme: "https", host: "REDACTED", port: 443],
  secret_key_base: "REDACTED"

config :opencov, Opencov.Repo,
  adapter: Ecto.Adapters.Postgres,
  url: "postgres://postgres@REDACTED/postgres",
  pool_size: 20

config :opencov, :email,
  sender: "OpenCov <REDACTED>",
  smtp: [
    relay: "smtp.gmail.com",
    username: "REDACTED",
    password: "REDACTED",
    port: 587,
    ssl: false,
    tls: :always,
    auth: :always
  ]
danhper commented 4 years ago

Thanks for the report, I'll have a look.

danhper commented 4 years ago

I just gave it a shot and did receive the email but it was in my spam folder. Could you please just double check it is not the case for you too before I investigate further. Thanks.

etienne-napoleone commented 4 years ago

Thanks for testing @danhper . There's nothing in my spam folder unfortunately. Did you use a gmail account?

danhper commented 4 years ago

Thanks for checking. No, I used mailgun. I'll try it with Gmail!