Notification Mails are not send
-
Hiya,
I want to switch to this plugin but also be able to use my excisting code.
add_action( 'personal_options_update', 'notify_admin_on_update' ); add_action( 'edit_user_profile_update','notify_admin_on_update'); function notify_admin_on_update(){ global $current_user; get_currentuserinfo(); if (!current_user_can( 'administrator' )){// avoid sending emails when admin is updating user profiles $to = '[email protected]'; $subject = 'user updated profile'; $message = "the user : " .$current_user->display_name . " has updated his profile with:\n"; foreach($_POST as $key => $value){ $message .= $key . ": ". $value ."\n"; } wp_mail( $to, $subject, $message); } }
However when making changes to the dashboard the requested mail gets send but when making changes through a page with [wppb-edit-profile] the mail does not get send.
Does this plugin changes profile information in another way?
Thanks in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Notification Mails are not send’ is closed to new replies.