diff --git a/Scripts/Billing/email-template.sh b/Scripts/Billing/email-template.sh new file mode 100755 index 0000000..6aefd8b --- /dev/null +++ b/Scripts/Billing/email-template.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +CUSTOMER_NAME='John Ryland' +CUSTOMER_EMAIL='John Ryland ' +PRODUCT_NAME='WickedDocs v1.0' +PAYMENT='$0.99' +DETAILS='order details ...' +CONTACT='support@subflexion.com' + + +# These get added +# From jryland@johns-linux Sun Jul 12 21:40:33 2015 +# Return-Path: +# X-Original-To: jryland@localhost +# Delivered-To: jryland@localhost +# XX +# Status: R + + +cat << EOF +Date: `date -R` +To: $CUSTOMER_EMAIL +From: Billing +Reply-To: billing@subflexion.com +Subject: Order Processed + + +Dear $CUSTOMER_NAME, + + +Thank you for purchasing $PRODUCT_NAME. +We have received your payment of $PAYMENT. + +If you were not expecting this email, please contact us at $CONTACT. You have received this because we have received a payment from PayPal using your email address to order one of our products. + +Please take a moment to check the details of the order below: + +$DETAILS + +If any of the details are not correct, please contact us at $CONTACT. + + +Regards +Subflexion Team + +EOF +