K
K
kacang2015-09-22 08:04:24
HTML
kacang, 2015-09-22 08:04:24

How to properly set up a contact form?

I just completed my landing page and am working on a contact form. You can use services like formspree, but I already have my own configured server with mail (and courtesans). Therefore, I want to make a form on my own.
Tell me a couple of kind words so that I don’t step on a rake?
The most obvious method is to send a mail to [email protected] via php_mail() or similar. But you can also add a record directly to the database without any mail ...
PS. I found one article on Habré on this topic (still in the sandbox)
habrahabr.ru/sandbox/93363

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2015-09-22
@m_pchelnikov

Should I bother with the database? If this is a simple non-loaded project, I think it's worth using php_mail(). And test not on a local computer, but on a hosting (which you need to choose to support the mail service), if this has not already been done.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question