• Resolved melinach

    (@melinach)


    Hi, Is it possible to send an e-mail to the site administrator to update the account? Or any other alert to let him know that an account has been modified?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hello @melinach

    The plugin sends the Account Updated Email to the member when the account is updated.

    You can use a code snippet below to send an email copy to the site administrator. This PHP code snippet adds the admin mailbox as the Cc (Carbon copy) header. Just add this code snippet to the file functions.php in the active theme directory.

    // Send the Account Updated email copy to the site administrator.
    add_filter( 'um_email_send_subject', function( $subject, $template ) {
    	if( 'changedaccount_email' === $template ){
    		UM()->mail()->headers .= 'Cc: ' . stripslashes( UM()->options()->get('mail_from') ) . ' <' . UM()->options()->get('mail_from_addr') . '>' . "\r\n";
    	}
    	return $subject;
    }, 20, 2 );

    You can use a solution that @missveronicatv proposed if you want to send an email to the site administrator when the profile is updated.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @melinach

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Account update email for the admin’ is closed to new replies.