Use the e-card code of php and mysql

Source: Internet
Author: User
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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.