public function sendEmail() {
global $wpdb;
global $current_user;
get_currentuserinfo();
$gal_id = $_POST['galleryselect'];
if(get_option('npu_notification_email')){
$to = get_option('npu_notification_email');
$subject = "New Image Pending Review - NextGEN Public Uploader";
$message = "A new image has been submitted and is waiting to be reviewed.\r\n";
$message .="Uploaded by $current_user->user_login, $current_user->display_name, $current_user->user_email.\r\n";
$message .="To gallery: $gal_id \r\n";
wp_mail( $to, $subject, $message);
}
}
User name/ID, image ID, etc
Example: