#!/bin/bash CUSTOMER_NAME='John Ryland' CUSTOMER_EMAIL='John Ryland <jryland@localhost>' 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: <jryland@johns-linux> # X-Original-To: jryland@localhost # Delivered-To: jryland@localhost # XX # Status: R cat << EOF Date: `date -R` To: $CUSTOMER_EMAIL From: Billing <billing@subflexion.com> 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