Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How to use mailgun with email plugin

Started by Alexander Kim 9 years ago · 2 replies · 1388 views
9 years ago

Here's the config:

YAML
mailer:
  engine: smtp
  smtp:
    server: smtp.mailgun.org
    port: 587
    encryption: tls
    user: 'domainname'
    password: 'apikey'

As username i've tried to use: my domain name in mailgun and my email in mailgun, both didn't work. As password tried to use api key and my mailgun's email password, both didn't work.

Tried to change user to domain and password to secret didn't work either. Was testing using this command:

bin/plugin email test-email -t [email protected]

9 years ago

This works for me.

YAML
mailer:
  engine: smtp
  smtp:
    server: smtp.mailgun.org
    port: 587
    encryption: none
    user: p[email protected]
    password: 'API_KEY'
  sendmail:
    bin: '/usr/sbin/sendmail -bs'
content_type: text/html
debug: false
9 years ago

I am getting this error:

TXT
  [Swift_TransportException]
  Failed to authenticate on SMTP server with username "postmaster@domain" using 2 possible authenticators

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago