Viewing 10 replies - 1 through 10 (of 10 total)
  • Save yourself a headache and try something like this in the body:

    Your Email: [email user-email]
    
    Do you want an email response? [checkbox checkbox-444 exclusive "No|" "Yes|CC:"]

    And then add this to your additional headers:

    [checkbox-444][user-email]

    When they select “No”, it will just drop the email in the additional header and nothing will go through. When they select “Yes”, it will add the “CC:” and cause them to be copied at the supplied email address.

    You’re welcome =)

    Thread Starter Rockhopper63

    (@rockhopper63)

    Thanks for the suggestion Kylee – but my goal was to be able to include additional content (“Thanks for contacting us”, etc.) in the copy that goes to the sender, without cluttering up their original message to the recipient.

    I am currently using Mail2 to send the response to all senders, with a note above the ‘submit’ button that says “you will automatically receive a copy of your message”. My thought was that I could give the sender the option of whether they want to get a copy – but still include the additional comments if they do.

    So is mail (2) only for the person filling out the form? If so, I’m not sure why my method won’t work…

    If mail (1) goes to you and your team, is mail (2) used for anything other than a possible “copy” to the submitter (if they elect to receive a copy)? If mail (2) is only for those times that they want a copy, then you can write whatever additional comments you want in there without cluttering the original message to the primary recipient.

    Perhaps I’m not following. If I’m not and you can help me understand, I’ll try to help you work through it some more.

    Thread Starter Rockhopper63

    (@rockhopper63)

    Sorry Kylee – I think I mis-interpreted your original reply… I thought you were saying to put the ‘[checkbox-444][user-email]’ in the additional headers for mail(1), so the checkbox would toggle whether the sender got a cc of that message.

    Didn’t think to put the checkbox tag in the header for mail(2)… which would probably do exactly what I was asking.

    Will try that when I get a few minutes. As a volunteer webmaster, with a full-time “day job”, I have to work these things in between all the other ‘stuff’ I do.

    No worries =)

    I’ll try to check back later in the weekend.

    Hi Kylee

    I was following your instructions (used radio instead of checkbox, not sure if it matters) so achieve what Rockhopper is trying.

    Here’s what I have in form:

    <div class=”form-row cf”>
    <label for=””>E-mail a copy of this message to your own address?</label><div class=”radio-wrap”>[radio mail-copy “Yes|CC:” “No|” ]</div>
    </div>

    In Mail2, I added in Additional Headers
    CC: [radio mail-copy] [your-email]

    However, even if NO is selected, a user still receives a copy.

    Any thoughts?

    Thanks so much for your assistance.

    You can’t type “CC:” in the additional headers. When you do, it negates the radio form. Plus, [radio mail-copy] will always render nothing because the tag is improperly formatted. (You need to drop the “radio” part.)

    Nonetheless, the way you’re trying to do it now, you would get one of the following results:
    CC: [email protected] [email is sent]
    CC: CC:[email protected] [email is sent]

    What you want is the results to be either:
    [email protected] [email is dropped]
    CC:[email protected] [email is sent]

    So, just put [mail-copy][your-email] (deleting the “CC:” before those) in the additional headers and you’ll be back in business. =)

    Thank you.

    All of my field tags have the name of the field in […] followed by title.

    So either [text Name] or [radio Member “Yes” “No”]. I don’t see how dropping “radio” will help.

    But I’ll try your way.

    This link on tag syntax may help you understand why it’s so.

    Looks like it’s working. Thank you so much!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Checkbox for optional cc to sender – CF7 v4.1’ is closed to new replies.