How does PHP make a contact form?

Source: Internet
Author: User
Tags contact form
How does PHP make a contact form?
[Img = http://pan.baidu.com/share/link? Container ID = 349025 & uk = 926243211] [/img]

This is how the customer sends the message to my mailbox after leaving a message. How can this problem be achieved?

I know how to use form, but I don't know how to implement it internally and how to write the code that responds to the submit?

Where do I need to set Apache and PHP?


Reply to discussion (solution)

[Img = http://pan.baidu.com/share/link? Consumer id = 349025 & uk = 926243211] [/img] why is the image not displayed?

Php provides the mail () function to send emails. you can also use the phpmailer class.

Do you really need such a request? if there are too many messages, how can you send an email.
My suggestion: directly send a message to the database. if you want to send an email, you can send it once a day and send all the messages in one day to your mailbox. You can go to Baidu: phpmailer, mail class


The mail () function and the phpmailer class are sent to you by yourself, which is meaningless.


The mail () function and the phpmailer class are sent to you by yourself, which is meaningless.

I am a general enterprise website and provide a contact form. after the customer fills in the information, click submit and send the customer information to my mailbox.

How can this be done?

You can, Baidu, find out how PHP sends an email !!

I also encountered a mail sending problem. a friend upstairs cannot send me a mail function code that can send emails? QQ: 593894955

I also encountered a mail sending problem. a friend upstairs cannot send me a mail function code that can send emails? QQ: 593894955

Phpmailer solved my problem.

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.