Phpmailer: Using the email field as the sender

Asked

Viewed 95 times

1

I have a question, can I use the email that was filled in the "E-MAIL:" field of the form as sender? I need that when I press the reply button of the mailbox it fills with the email that is filled in the form...

1 answer

1


No need to put the email as the sender. You can use the function replyTo for this. It is intended that when the email is answered by the mailbox, the reply goes to the email informed in the function replyTo instead of the email that sent the email.

$mail->AddReplyTo('[email protected]', 'Reply to name');

Browser other questions tagged

You are not signed in. Login or sign up in order to post.