And your need to wait to e-mail versus providing a code with the order confirmation? Are you processing monies with an order or capturing them?

Perhaps making the code a combination of the model number, first 3 characters of the last name and the order id, could be created, added to the database, and sent in the order confirmation.

One thing that would worry me is the fact that AOL, AT&T, and others will block emails without letting the sender know that they have been blocked. Of course, having the code show in the customer's account history would certainly help.

As kobra stated, this is possible from several directions but, the coding can be tricky.

You could certainly use the same method used when the cart requires certification before prices can be seen. In that case, clicking on the red button next to the customer sends an e-mail letting them know that they can now see and shop. That same method could send an e-mail to the customer when the sale is complete BUT it is not automatic.

Easiest would be to add the code to the confirmation e-mail BUT you would need to be sure the funds were captured prior to confirmation.

Can the code be rescinded if, for some reason, the transaction later failed?