Advertisement
chrishajer

Set FROM email address for notifications

Sep 13th, 2011
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. // http://www.gravityhelp.com/forums/topic/notifications-3
  2. // change the 2 below to your form id if it's not form 2
  3. add_action('gform_pre_submission_filter_2', 'set_from_email');
  4. function set_from_email($form) {
  5.     // change input_19 here to the field that contains the email VALUE for your technician
  6.         $techemail = rgpost('input_19');
  7.         $form['notification']['from']  = $techemail;
  8.         $form['autoResponder']['from'] = $techemail;
  9.         return $form;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement