+44 (0)1223 659363 contact@acep.org.uk

mailout22

Mailing out now 🙂

//removed insert_php]
end();
global $wpdb;
$current_user = wp_get_current_user();
$fordb=$current_user->user_login;
$checksum=$_GET[‘checksum’];
if ($checksum==”OK”){

$subject = “Skills audit invitation”;

$con1 = “You have been invited to complete a Skills Audit.

The purpose of this exercise is to provide individuals engaged on public consultation activities with a framework within which to assess their current skills and to prioritise their training needs.

Please click on (or follow) the link below in your web browser to proceed.

You can only submit your answers once but can come back to the survey at any time.
“;

//add_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ );

//$status = wp_mail($to, $subject, $content);

$blogusers = get_users( ‘blog_id=1&orderby=nicename&role=subscriber’ );
// Array of WP_User objects.
foreach ( $blogusers as $user ) {
$desc=get_user_meta($user->ID, ‘description’, true);
if ($desc==$fordb){

echo ‘‘ . esc_html( $user->user_email ) . ‘‘;echo “
“;
$to=$user->user_email;
$fname=$user->user_login;
$uid=$user->ID;
$con2=”www.consultationlab.org/autologin?login=$fname&uid=$uid”;
$content=$con1.$con2;
$status = wp_mail($to, $subject, $content);}
}

function set_html_content_type() {
return ‘text/html’;
}

remove_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ );

} else {echo “Sorry, that’s not permitted.”;}
[/insert_php]
Please wait while you are redirected...or Click Here if you do not want to wait.