I assume there’s a filter for this. It’s really annoying for me and confusing for clients when these are my email address ({admin_email}) instead of something actually appropriate.
Hello. You could use the gform_pre_send_email filter to change the to and from addresses globally for all Gravity Forms notifications.
The code would look something like this:
add_filter( 'gform_pre_send_email', function ( $email, $message_format, $notification, $entry ) {
$email['headers']['From'] = 'From: "From Name" <fromaddress@example.com>';
$email['to'] = 'newaddress@example.com';
return $email;
}, 10, 4 );
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.