will be helpful for those in need First to get PHP you need a .php file. You could create one named sendEmail.php for your form. Then to call the .php file from you form change your action parameter to action="sendEmail.php". To actually get the value to sendEmail.php use the POST method. Here's a simplified version of what your code should look like: index.html
seems to work fine It sounds like your server is not processing PHP correctly. There's nothing wrong with your HTML form, assuming contact.php is indeed the action page you want - you just need to get your server/computer to handle PHP properly. Check this answer for more info.
Contact form doesn't work - sending to contact.php "page"
Hope that helps The "name" parameter is reserved for/used by other wordpress purposes. If you rename it to "username" (for example) your script will probably work. So, instead of , use , and get the variable with $_POST['username'].
sending emails in YII2 via contact form sending to another address
wish of those help Allow less secure apps to access your Gmail account To disable this security feature:
->setSubject('Уведемление с сайта <yourDomain>') // тема письма
->setTextBody('Текстовая версия письма (без HTML)')
->setHtmlBody('<p>HTML версия письма</p>')
Wordpress - Contact Form 7 - Stuck sending contact form
it helps some times In my case the error was caused because i had a file upload field in my form to upload an attachment, and the file was exceeding the post_max_size and upload_max_filesize (php/apache settings). When i changed these two, the problem was gone.