~bzg/subscribe

41234b6f6ee38e098ee341881f34043d4c84c12d — Bastien Guerry 9 months ago 538de34
Add MAILGUN_API_BASEURL env var
3 files changed, 3 insertions(+), 1 deletions(-)

M README.md
M README.org
M src/config.clj
M README.md => README.md +1 -0
@@ 47,6 47,7 @@ Email credentials:
Backend-specific variables:

    # To handle mailgun.com mailing lists:
    export MAILGUN_API_BASEURL="https://api.mailgun.net/v3" # or "https://api.eu.mailgun.net/v3" for EU domains
    export MAILGUN_API_KEY="your-key"
    
    # To handle sendinblue.com mailing lists:

M README.org => README.org +1 -0
@@ 46,6 46,7 @@ Email credentials:
Backend-specific variables:

: # To handle mailgun.com mailing lists:
: export MAILGUN_API_BASEURL="https://api.mailgun.net/v3" # or "https://api.eu.mailgun.net/v3" for EU domains
: export MAILGUN_API_KEY="your-key"
: 
: # To handle sendinblue.com mailing lists:

M src/config.clj => src/config.clj +1 -1
@@ 13,7 13,7 @@
(def backends
  [{:backend                        "mailgun"
    :host                           "smtp.mailgun.org"
    :api-url                        "https://api.mailgun.net/v3"
    :api-url                        (System/getenv "MAILGUN_API_BASEURL")
    :lists-endpoint                 "/lists/pages"
    :lists-query-params             {:query-params {"limit" "100"}}
    ;; :subscribe-http-verb         "POST"