• Resolved paolobros

    (@paolobros)


    HI. I am using manual booking without automatic booking confirmation. The problem arises when the booking request arrives on the email box, for which we would like to have the possibility to reply by clicking on “reply”. Currently, when we do this, the email that appears in the address is the one written in the “from email address” field in the Settings – Email section. So if we click reply, we send it to ourselves. Is it possible to make a change to include the email entered in the form by the customer, in the “from” field of the email sent to the manager? Thank You.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author benitolopez

    (@benitolopez)

    Hi,

    I don’t think you can change the from field otherwise there’s a good chance that your server will not be able to send the email.

    You can try to add the “reply-to” property to the headers. Something like this:
    https://pastebin.com/raw/VwB1m12w

    I don’t assure you anything because emails are tricky, and there can be a lot of reasons if something doesn’t work. The code I sent you should be correct.

    WP Hotelier uses wp_mail() from WordPress, so nothing special. If the code above doesn’t work try to filter the $headers in other ways or maybe try other solutions. I don’t have anything else to suggest.

    Best,
    Benito

    Thread Starter paolobros

    (@paolobros)

    Thank You Benito. It Works.

    I only changed the quotes in $headers (from ” to ‘) to correctly display the first and last name in the Reply-to field.

    Plugin Author benitolopez

    (@benitolopez)

    That’s great!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘reply to field email’ is closed to new replies.