So I'm working on a website.

http://www.muchbetterjobs.com

It's a joomla site, and it's online store is made with virtuemart.
When a user buys a product, it sends them a conformation email and soon after sends them another email with a user name and password to login to their eBook.

Do any of you know where I would find something like this? I come to this forum because most of the site is written in php