I remember it was a pain for me as well at one point, but I got it to work in one of my projects with the following config:
config :my_app, MyApp.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: System.fetch_env!("SMTP_SERVER"),
username: System.fetch_env!("SMTP_USERNAME"),
password: System.fetch_env!("SMTP_PASSWORD"),
ssl: false,
tls: :always,
tls_options: [verify: :verify_none],
auth: :always,
port: System.fetch_env!("SMTP_PORT"),
retries: 2,
no_mx_lookups: false






















