The first step is to use the e-card code of php and mysql: (Note: The php program is added to this form)
Step 3: send greeting cards
If (submit = "Send ")
$ Mainurl = "http://lyjrich.oso.com.cn/card"; // the home directory URL of the greeting card file
$ Dataurl = "$ mainurl/store"; // The URL of the generated greeting card.
$ Userip = getenv ("REMOTE_ADDR ");
$ Daten = date ("m Month D day H point I ");
$ Roundno = date ("mdHis ");
$ Fileno. = $ roundno. ". html ";
$ Fileurl = $ dataurl. "/". $ fileno; // The URL for storing the generated greeting card
$ Subject = "greeting cards mailed to you by a friend ";
$ Content = eregi_replace ("
"," \ N "," $ text ");
$ T_body. = "************************************** \ n ";
$ T_body. = $ f_name. "Hello, \ n ";
$ T_body. = $ g_username. "sent you a greeting card from the http://lyjrich.oso.com.cn. \ N ";
$ T_body. = $ g_username. "The message says \ n". $ text. "\ n ";
$ T_body. = "please click http://lyjrich.oso.com.cn/card". $ fileurl. "to enjoy this card \ n ";
$ T_body. = "the greeting card is saved for up to one month. \ N ";
$ T_body. = "\ n ************************************ \ n ";
$ T_body. = "sending time $ daten \ n ";
$ T_body. = "************************************** \ n ";
$ T_body. = "free e-cards are provided by the your web site \ n ";
$ T_body. = "program production: lyjrich (http://lyjrich.oso.com.cn) \ n ";
Mail ($ f_email, $ subject, $ t_body, "From:". $ email. "\ n ");
Echo"