Answer the question
In order to leave comments, you need to log in
How to connect email to landing page?
Good evening everyone!
Need help, or rather guidance on the true path. I got myself a template on wrapbootstrap for my portfolio ... Now I've been sitting for an hour and poking around. I can't set up mail/feedback.
In other words, there is a form, a personal mail on Yandex, which I am trying to attach, and a file with a code where everything seems to be written. BUT! Damn, he doesn't want to work in my hands.
Can anyone post a link to something like this? Thanks in advance. All good.
Ps after entering the necessary data, a white page appears with: 405 Not Allowed
nginx/1.10.2 I
tried to enter here:
require 'PHPMailer/PHPMailerAutoload.php';
$host = 'YOUR_HOST';
$username = '[email protected]';
$password = 'YOUR_PASSWORD';
Answer the question
In order to leave comments, you need to log in
<?php
$to = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question