PHPMailer: Using the email field as sender

1

I have a question, how can I use the email that was filled in the "E-MAIL:" field of the form as the sender? I need you to press the reply button on the mailbox to fill in the email that is filled in the form ...

    
asked by anonymous 06.11.2017 / 23:31

1 answer

1

You do not need to put the email as the sender. You can use the replyTo function for this. It is intended that when the email is answered by the mailbox, the response goes to the email entered in the replyTo pendent function instead of the email that sent the email.

$mail->AddReplyTo('[email protected]', 'Reply to name');
    
07.11.2017 / 11:51