I am using promo code's that are actually valid email addresses. When a successful payment has been made, and a promo code was used, I would like to send an email to the email address (promo code)....

For example, if someone entered the coupon or promo code '[email protected]' then upon successful payment confirmation, I would like an email sent out to the email address entered within the promo code field. I don't mind hard coding the message.

I know how to validate if the email is correct, but I am having trouble figuring out where this code would go so that it fires upon a successful payment confirmation when it detects an email address has been entered in the promo/coupon field. I thought that I could put it in the salemaker.php file but can't seem to find any references as to what promo code the user may have entered.

Thanks for any assistance in pointing me in the right direction!