added email confirmation script for purchase page