Title: Help needed with class.mail.php syntax
Last modified: August 20, 2016

---

# Help needed with class.mail.php syntax

 *  Resolved [bfagan](https://wordpress.org/support/users/bfagan/)
 * (@bfagan)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/help-needed-with-classmailphp-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](https://wordpress.org/support/topic/help-needed-with-classmailphp-syntax/jdoe@blah.com?output_format=md)
   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](https://wordpress.org/support/topic/help-needed-with-classmailphp-syntax/jdoe@blah.com?output_format=md)
   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/](http://wordpress.org/extend/plugins/speakup-email-petitions/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [bfagan](https://wordpress.org/support/users/bfagan/)
 * (@bfagan)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/help-needed-with-classmailphp-syntax/#post-3473547)
 * 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 ‘Help needed with class.mail.php syntax’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/speakup-email-petitions_658195.svg)
 * [SpeakUp! Email Petitions](https://wordpress.org/plugins/speakup-email-petitions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/speakup-email-petitions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/speakup-email-petitions/)
 * [Active Topics](https://wordpress.org/support/plugin/speakup-email-petitions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/speakup-email-petitions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/speakup-email-petitions/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [bfagan](https://wordpress.org/support/users/bfagan/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/help-needed-with-classmailphp-syntax/#post-3473547)
 * Status: resolved