Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-09-24 21:55:46 -04:00
parent 90bede2f81
commit e80cb8adcf
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,9 @@
FROM r.j3ss.co/curl
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
RUN apk add --no-cache \
bash
COPY sendmail /usr/bin/sendmail
ENTRYPOINT [ "sendmail" ]

View File

@ -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 <mailgun@"${MAILGUN_DOMAIN_NAME}">'" \
-F 'from="Excited User <mailgun@'"${MAILGUN_DOMAIN_NAME}"'>"' \
-F "to=${TO_NAME}" \
-F "to=${TO_EMAIL}" \
-F "subject='"${SUBJECT}"'" \
-F "text='"${BODY}"'"
-F 'subject="'"${SUBJECT}"'"' \
-F 'text="'"${BODY}"'"'