Client Confirmation email

  • Posted in : Photographer
  • motti_b
    Participant

    The contact form has a clean and simple code but lacks the client confirmation email, the email the client receives thanking her/him for the inquiry and that someone would contact her/him soon.

    It’s also good that the client knows her/his email was received.

    So…
    Open the send-mail.php and insert the code shown below at the end of the file, just before the ‘?>’ code.

    Here is the code:

    // Subject of confirmation email.
    $conf_subject = 'Your recent enquiry';

    // Who should the confirmation email be from?
    $conf_sender = 'Company name ';

    $msg = $_POST['name'] . ",\n\nThank you for your recent inquiry. A member of our
    team will respond to your message as soon as possible.

    your name
    your company name
    555-555-5555";

    mail( $_POST['email'], $conf_subject, $msg, 'From: ' . $conf_sender );

    That’s it. Just don’t forget to upload the php file to the server of course

    serkan
    Moderator

    Hi motti_b
    Thanks for the useful information and feedback.

    motti_b
    Participant

    Glad I could help!

    Just a small note: at the line
    $conf_sender = ‘company name ‘;

    add you email like that:
    $conf_sender = ‘company name ‘;

    That’s it.

    I hope this code or something like it will be part of the send-mail.php file. It is very important that people receive a confirmation when sending an inquiry.

    Cheers guys.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register