This will be a very custom setup and will require you to do some hand coding to get it worked out.
You could make use of the eCart functions to check for a particular item by it's id. If the item is found then you could do some processing like set a session variable to a coupon code. You could then send an email to the user with this coupon code.