• Resolved TinaTheVA1

    (@tinatheva1)


    Hello again,

    Is there a place to add an email address to be notified when the Form is submitted?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hello,

    By default, it should be sending emails to the email addressed listed as the “administrator email” in your WordPress General settings. This would be the one listed for “Email Address” when visiting Settings > General.

    Thread Starter TinaTheVA1

    (@tinatheva1)

    Thanks Michael, but what if you want it to go to a different email address?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Providing here as well, for those who don’t see the other thread.

    If you or someone else helping with the site is comfortable with WordPress filters, we do have this one to change the destination email:

    $email = get_option( 'admin_email' );
    /**
     * Filters the email to send Constant Contact Forms admin emails to.
     *
     * @since 1.3.0
     *
     * @param string $email Email address to send to. Default admin_email option.
     */
    return apply_filters( 'constant_contact_destination_email', $email );
    

    It’s not done at the moment, but I also want to offer a method to set the destination on each form individually.

    I am looking forward to seeing this coded in the plugin. We will make this change, however, when the plugin gets an update, the modified code will be overridden, correct?

    Thanks.
    Paul.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hey Paul,

    If you’re editing the plugin directly, yes, updating would overwrite that change. However, if you’re using the filter above and changing the destination via the filter, you should be just fine.

    Just as a quick example that could be dropped into your active theme’s functions.php file for safe keeping:

    function ptaubman_ctct_email( $original_email ) {
        return '[email protected]';
    }
    add_filter( 'constant_contact_destination_email', 'ptaubman_ctct_email' );
    
    Plugin Author Constant Contact

    (@constantcontact)

    Marking resolved as these are known feature requests and alternative solutions are available for the time being.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Email notifications’ is closed to new replies.