From e80cb8adcfa32e241cffeb0b840ce30b3fec45a0 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 24 Sep 2018 21:55:46 -0400 Subject: [PATCH] fix Signed-off-by: Jess Frazelle --- mailgun/Dockerfile | 3 +++ mailgun/sendmail | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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}"'"'