This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Drop Down List Email Selection


  1. croc
    Member

    Hello

    I was trying to select from a drop down list and have email directed to a specific person. I was using the info from this link;

    http://www.appnitro.com/doc-dynamic-email

    I seem to be tripping over myself trying to get the code right.

    Here is the form: http://securesubmit.ca/forms/view.php?id=16898

    Here is the code I added to custom_hooks.php;

    More info at: http://www.appnitro.com/
    ******************************************************************************/

    global $mf_hook_emails;

    $mf_hook_emails[16898]['element_id'] = element_19;

    $mf_hook_emails[16898]['Fellowship Development West'] = 'chair@thedomain.com';
    $mf_hook_emails[16898]['Fellowship Development Central'] = 'chair@thedomain.com';
    $mf_hook_emails[16898]['Fellowship Development East'] = 'chair@thedomain.com';
    $mf_hook_emails[16898]['Translations'] = 'chair@thedomain.com';
    $mf_hook_emails[16898]['CANA Chair'] = 'chair@thedomain.com';
    $mf_hook_emails[16898]['Web Site'] = 'derekbursey@gmail.com';
    /*** START SAMPLE - Sample email hooks

    I selected the option to send mail to "Web Site" as that is the only real email address.

    Thanks for your assistance.

    Slow Guy

    Posted 9 years ago #
  2. williamansley
    Member

    @croc: If you have Machform 3.5 or newer, you don't need to do any coding and are looking at outdated documentation. You should be referring to this instead:

    http://www.appnitro.com/blog-conditional-logic-for-notification-emails

    If you are using a version of Machform older than 3.5, upgrade if at all possible!

    Posted 9 years ago #
  3. croc
    Member

    Thanks for your help.

    I do have the latest version and was able to use the email logic :-)

    Posted 9 years ago #

RSS feed for this topic

Reply