Newer
Older
invertedlogic / Scripts / Billing / email-template.sh
#!/bin/bash

CUSTOMER_NAME='John Ryland'
CUSTOMER_EMAIL='John Ryland <jryland@xiaofrog.com>'
PRODUCT_NAME='WickedDocs v1.0'
PAYMENT='$0.99'
CONTACT='support@subflexion.com'
DATE=`date -R`
DETAILS='order details ...'

cat << EOF | mailx -a "From: Subflexion Billing <billing@subflexion.com>" -s "Order Processed" "$CUSTOMER_EMAIL"


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:

Order Details:

	Date: $DATE
	Product: $PRODUCT_NAME
	Price: $PAYMENT
	$DETAILS

Your Details:

	Name: $CUSTOMER_NAME
	Email: $CUSTOMER_EMAIL


If any of the details are not correct, please contact us at $CONTACT.

We will send you an invoice and your license key soon. If you do not recieve these in the next 12 hours, please contact us as $CONTACT.


Kind regards,
Subflexion Team


EOF