diff --git a/mailgun/Dockerfile b/mailgun/Dockerfile index 20b17f6..5b2c59d 100644 --- a/mailgun/Dockerfile +++ b/mailgun/Dockerfile @@ -1,6 +1,9 @@ FROM r.j3ss.co/curl LABEL maintainer "Jessie Frazelle " +RUN apk add --no-cache \ + bash + COPY sendmail /usr/bin/sendmail ENTRYPOINT [ "sendmail" ] diff --git a/mailgun/sendmail b/mailgun/sendmail index 11ddca4..1b27963 100755 --- a/mailgun/sendmail +++ b/mailgun/sendmail @@ -34,8 +34,8 @@ fi curl -sSL --user "api:${MAILGUN_API_KEY}" \ "https://api.mailgun.net/v3/${MAILGUN_DOMAIN_NAME}/messages" \ - -F "from='Excited User '" \ + -F 'from="Excited User "' \ -F "to=${TO_NAME}" \ -F "to=${TO_EMAIL}" \ - -F "subject='"${SUBJECT}"'" \ - -F "text='"${BODY}"'" + -F 'subject="'"${SUBJECT}"'"' \ + -F 'text="'"${BODY}"'"'