• Resolved maxidg

    (@maxidg)


    hi there,
    i found on your site the snippet for bcc form email .. and this:
    // Only run this snippet on the form ID 235
    if ( absint( $emails->form_data[‘id’] ) !== 235 ) {
    return $data;
    }

    is only for 1 form .. but i have 4 forms in my site? how can have a bcc for all of my forms?

    idea?

Viewing 1 replies (of 1 total)
  • Plugin Support Kenneth Macharia

    (@kmacharia)

    Hey @maxidg,

    Thanks for reaching out!

    In order to use the same BCC email on all your forms, you can remove the code highlighted in your question from the function:

    // Only run this snippet on the form ID 235
    if ( absint( $emails->form_data['id] ) !== 235 ) {
    return $data;
    }

    Alternatively, you can pass each of your form IDs to the function like so:

    // Only run this snippet on the form ID 235, 236, 237 & 238 
    if ( absint( $emails->form_data['id'] ) !== 235 || $emails->form_data['id'] ) !== 236 || $emails->form_data['id'] ) !== 237 || $emails->form_data['id'] ) !== 238) {
    return $data;
    }

    I hope this helps. Thanks 🙂

Viewing 1 replies (of 1 total)

The topic ‘bcc for all my forms’ is closed to new replies.