Answer the question
In order to leave comments, you need to log in
What to do when submitting a form?
There is a PHP script for sending data from a form to mail using PHPMailer. There are lines in the code:
$mail->isSMTP();
$mail->Host = 'smtp.gmail.com';
$mail->SMTPAuth = true;
$mail->Username = '';
$mail->Password = '';
$mail->SMTPSecure = 'ssl';
$mail->Port = 465;
Answer the question
In order to leave comments, you need to log in
In 4-5 lines, you need to specify the login and password for the mailbox from which letters should be sent. And then the question is: what kind of box should this be? For example, I'm making a landing page for a customer with a feedback form and this script. What to do?
$mail->isSMTP();
$mail->Host = 'smtp.gmail.com';
$mail->SMTPAuth = true;
$mail->Username = 'мояпочта@gmail.com';
$mail->Password = 'парольОтМоейПочты';
$mail->SMTPSecure = 'ssl';
$mail->Port = 465;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question