• Resolved SimonGiddings

    (@simongiddings)


    I am creating a contact form for requesting special information.
    This form will only be available to users who are logged in.
    I therefore do not want to or need to provide fields for their name and email address.

    In the email section, we place tags such as [your-email].
    How can I automatically fill in the email content without using form field tags and without using form fields which are hidden ?

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
  • See Special Mail Tags

    Alternatively Contact Form 7 Dynamic Text Extension may offer a solution.??

    Thread Starter SimonGiddings

    (@simongiddings)

    Looked already at the Special Mail Tags, but could not find what I needed.
    However, I have just tried the “Contact Form 7 Dynamic Text Extension” – excellent, exactly what I needed.
    Thank you

    Thread Starter SimonGiddings

    (@simongiddings)

    Oops, spoke too soon.

    The extension mentioned above was, in fact, totally useless.
    It simply provides extra form fields and does not permit adding data dynamically to the email being sent.

    So, what is the answer ?
    Hook into the

    wpcf7_mail_components

    filter and do what is needed in code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fill email with data not provided in the form’ is closed to new replies.