WordPress.org

Ready to get started?Download WordPress

Forums

Fast Secure Contact Form
[resolved] Including name in confirmation email? (4 posts)

  1. HoldOrFold
    Member
    Posted 11 months ago #

    First of all let me say this plugin is fantastic!

    But I need to include the customer's name in the confirmation email that I send, and ideally create a link in the email including the name.

    Is that possible?

    Thanks for any help!

    http://wordpress.org/extend/plugins/si-contact-form/

  2. Mattki
    Member
    Posted 11 months ago #

    Try the following:
    Open si-contact-form-process.php and go to line 1079-1081. You will find :

    $subj = preg_replace('/(\[ex_field)(\d+)(\])/','',$subj); // remove empty ex_field tags
    $msg = preg_replace('/(\[ex_field)(\d+)(\])/','',$msg);   // remove empty ex_field tags
    $subj = str_replace('[form_label]',$posted_form_name,$subj);

    Add following line behind it:
    $msg = str_replace('[to_contact]',$to_contact,$msg);

    Now you can use the tag [to_contact] in the confirmation e-mail that gives you the name of the recipient.

    Enjoy!

  3. Mike Challis
    Member
    Plugin Author

    Posted 10 months ago #

    No need to edit the form code for that,
    See this page for the instructions on how to use the available tags
    http://www.fastsecurecontactform.com/tip-add-email-autoresponder

  4. Mattki
    Member
    Posted 10 months ago #

    Sorry Mike, but the field tag [to_contact], which gives the name of the recipient, is not available in your original version. Therefore I had to do the modification.

    BR
    Mattki

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.