Contact form problem

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10035017
    fizahanif006
    Participant

    Hi! I am using a basic contact form, however, I am facing the following issues:
    1. When I receive a message and I choose to reply, it will reply to my email address and not to the sender’s email.
    2. In the header section of the email it does not appear sender’s email nor his/her name.

    What I want is:
    1. Reply messages directly to the sender.
    2. Want to see senders’ email address and name in the header of every email.

    Need urgent help!
    Looking forward to your response.

    Thanks…



    Template Version: 8.1
    #10035021
    Support
    Keymaster

    Hello, thanks for your purchase.

    Reply messages directly to the sender.

    At really this already should occurs. Make sure the following:
    – You have the email input with name="email". For example:

    <input type="email" value="" data-msg-required="Please enter your email address." data-msg-email="Please enter a valid email address." maxlength="100" class="form-control" name="email" required>

    name in the header of every email

    At really this already should occurs. Make sure you have input for name with name="name". For exmaple:

    <input type="text" value="" data-msg-required="Please enter your name." maxlength="100" class="form-control" name="name" required>

    Want to see senders’ email address

    Change this line of code at “php/contact-form.php”:

    $mail->SetFrom($email, $fromName);

    To:

    $mail->SetFrom($_POST['email'], $fromName);

    * Important: Some servers has SPF rules to not allow receive emails from different origins. So if you change it and have problems to receive the emails, you should unmake this change.

    If you still have problems, please send us the HTML code of your contact form and all PHP code of “contact-form.php”. You can use a service like https://pastebin.com to create a link with the code and share with us.

    We hope this helps!

    Please try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


    If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads


Viewing 2 posts - 1 through 2 (of 2 total)

This topic is marked as "RESOLVED" and can not rceive new replies.