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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

How to use mailgun with email plugin

Started by Alexander Kim 8 years ago · 2 replies · 967 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 Jerry Hunt, 4 days ago
2 80 10 hours ago
General · by pamtbaau, 15 hours ago
1 51 15 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago