Sho, ---- using Osc 2.3.1
Let me first explain the problem - i am not able to send the product keys (they are virtual products) to the customers email ,when i use paypal standard or any other payment module that has its own email defined at - includes/modules/payment/paypal_standard.php (same goes for other payment modules as well) but it works nicely when the main checkout_process.php files is used to send the email (ie paypal express,money order, etc that use the main checkout_proucess.php to send the confirmation email.
Some screenshots to make this a lil clear - :-"
I have done this by taking a pretty old module from here - http://addons.oscommerce.com/info/3883 , what this addon does is allows you to sell product/licence/phone cards etc... and those product keys are sent in a sequence to the customers email (also available on his accounts history) ,ofcourse after the payment is confirmed .
All of this is achieved by hooking the product keys in the form of a attribute .
Here is a pastebin link to of my paypal_standard.php file ,parts that have been changed of added have the initials of #pin change - http://pastebin.com/KfBGM3xW
Once i am done with this addon i am letting it out in the addons section with some facelift and adding a image upload feature(so that images can be sold or send to the customers as well (since none of the addons do what this addon does - or maybe its the best i have found so far )
LLOsc........