• Resolved shubhada1998

    (@shubhada1998)


    Hello,

    There is an automated email option in the hustle plugin which will send mail to the person who subscribes to my website. Is there any way where I can get notification or mail when someone subscribed .because every time I have to check the email list?.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @shubhada1998

    I hope you’re well today!

    It’s not (yet) supported out of the box – the e-mail can only be sent to one recipient, the subscriber’s e-mail.

    We do have a such “CC” notification planned but for now you can use additional code snippet for this:

    1. create an empty file with a .php extension (e.g. “hustle-mail-cc.php”)
    2. copy and paste following code into it

    <?php 
    
    add_action( 'hustle_form_submit_before_set_fields', function(){
    add_filter( 'wp_mail', function( $args ){
    $args['headers'] = (array) $args['headers'];
    $args['headers'][] = 'Cc: '. get_option( 'admin_email' );
    // or custom email.
    // $args['headers'][] = 'Cc: ABC <[email protected]>';
    
    return $args;
    } );
    } );

    3. save the file and upload it to the “/wp-content/mu-plugins” folder of your site’s WordPress installation, using (S)FTP, cPanel’s File Manager or any similar tool of choice

    Note: if there’s no “mu-plugins” folder directly in “wp-content”, just create an empty one first.

    It doesn’t require any configuration and activation or changes in Hustle setup. Once added, it will automatically send a copy of the very same automated e-mail notification that is sent to subscriber – it will send it to your site’s main admin e-mail.

    Thread Starter shubhada1998

    (@shubhada1998)

    Great, Thank you

    • This reply was modified 3 years, 8 months ago by shubhada1998.

    please can you send me a guide in images?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @rajithahettige98

    You can find a guide on how to add the code as a mu-plugin on this link:
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    If you need further help on this, please create a new ticket, per forum rules we don’t spam the thread starter user.

    Best Regards
    Patrick Freitas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘want to receive notifications while email subscription’ is closed to new replies.