WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Help needed with class.mail.php syntax

[Resolved] Help needed with class.mail.php syntax

  • First, let me say I’m not a coder, more of a cutter/paster.

    I’ve been asked to set up multiple petitions, one per sports group, to petition our local officials. They wanted the custom field on each petition to be a drop down. The label of the field is “I am a downtown little league” then the dropdown values are “parent”, “player”, “friend”. Same for soccer league “I am a downtown soccer league” “parent”,”player”,”friend”. There are 7 groups, therefore 7 petitions. (We want the elected officials to understand the affiliations as to where the mails are coming from). Through this help forum, I was able to implement the dropdown.

    In the petition e-mail, it includes the value of the custom field in the mail signature, so it’s showing up as:
    John Doe
    jdoe@blah.com
    parent

    What I’d like to do is include the custom field lable and the value so that it shows up as:
    John Doe
    jdoe@blah.com
    I am a Downtown Little League Parent

    I just don’t know how to get that variable name echoed into the signature.

    Thanks in advance for any help.

    http://wordpress.org/extend/plugins/speakup-email-petitions/

Viewing 1 replies (of 1 total)
  • Figured it out myself. wasn’t realizing that custom_field_label was on the petitions table, not the signature.

    If anybody cares, it actually worked out really well.

    Instead of using the custom_field_label and custom_field (value) in the signature, I moved it up into the greeting. So now the Petition starts with my constant greeting followed by my custom valued field. so looks like this:

    Dear Elected Officials,
    I am a Little League Parent
    blah blah blah

    or

    Dear Elected Official
    I am a Little League Player

    and as mentioned above (again, if anyone cares) I set up 7 similar petitions, so our officials will be receiving virtually the same petition with the league affiliation and constituent group up top.

    you’re welcome, me

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Help needed with class.mail.php syntax’ is closed to new replies.