In 2003, I wrote a tutorial on how to build your own eCards service using PHP/MySQL. It was written and published on Flash-dB Forum. If you have any queries, please direct them to Flash dB – Flash eCards Forum.
The bad news is that the tutorial went off-air and I am unable to find it. If you happen to have a copy, please email it to me and if I do manage to find it, I will make a point to update this post.
However, the good news is that I have the zip archive with the scripts. Click on the link below to download.