Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

How to use mailgun with email plugin

Started by Alexander Kim 8 years ago · 2 replies · 1033 views
8 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]

8 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
8 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 Hanns Mattes, 3 weeks ago
1 268 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 196 3 weeks ago
General · by Jerry Hunt, 3 weeks ago
2 331 3 weeks ago
General · by pamtbaau, 3 weeks ago
1 253 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 223 3 weeks ago