PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Notifications question

  1. idealists
    Member

    Hi

    I am wanting 2 different notification messages to be sent to 2 different non-user email contacts.
    So far I have been able to setup the first notification message in "Notification to Administrator".
    The second notification message that I want sent out is to a different email address and has a simple text message - no need for form values to be in it (but having access them to use them at a later stage would be a bonus).

    Is there anyway of setting up this second notification message in the admin section?

    Or is there possible a hook that I could use? If so can you show me a quick example of how to send a short, secondary notification to example@email.com with the hook?

    Many thanks for your assistance.

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  2. If you need an additional notification besides the admin notification and the autoresponder, you could use the gform_post_submission hook and use WordPress' default mail function wp_mail() to send a simple message.

    add_action('gform_post_submission_1', 'send_simple_message');
    send_simple_message($entry){
    
         wp_mail('email@email.com', 'Subject', 'Message');
    
    }
    Posted 13 years ago on Thursday January 27, 2011 | Permalink