wp_mail recipient array not sending?

There are multiple ways of doing this. You can consider any of the following. 1.My preferred: foreach($group_emails as $email_address) { wp_mail($email_address, ‘my subject’, ‘my message’, $headers); } 2.Another way Define the array as follows. $group_emails = array(‘[email protected]’, ‘[email protected]’, ‘[email protected]’, ‘[email protected]’, ‘[email protected]’, ‘[email protected]’, ‘[email protected]’, ‘[email protected]’, ‘[email protected]’, ‘[email protected]’ ); And then try your regular procedure: wp_mail($group_emails, ‘my … Read more

Few chars getting replaced with ‘=’ in mail content in wp_mail()

Commenting couple of return statements and replacing them as suggested in the below link on wordpress.org worked for me, now the mails are sent properly and the equal sign ‘=’ issue is solved. Fixed by making following changes in wp-includes\class-phpmailer.php public function encodeQP($string, $line_max = 76) { // Use native function if it’s available (>= … Read more

WP Cron emails not working

This should be a comment, but I don’t have comment privelages 🙁 I had this exact problem not long ago, and felt stupid when I realised it was because I had set a password on the directory…

Send a confirmation of user role upgrade conditionally

Quite possibly something like this might work; function user_role_update( $user_id, $new_role ) { $site_url = get_bloginfo(‘wpurl’); $user_info = get_userdata( $user_id ); if (user_can( $user_id, ‘capability’ ) ) { $to = $user_info->user_email; $subject = “Role changed: “.$site_url.””; $message = “Hello ” .$user_info->display_name . ” your role has changed on “.$site_url.”, congratulations you are now an ” … Read more

Send mail to wordpress admin

I could not really work out with the ajax with plugins things. Not so good with it still. 🙁 So i simply used the function get_bloginfo(‘admin_email’) to obtain the admin’s email address. Using mail() function, the mails are sent to the obtained email address on click of the button.

Send all WPMU emails via SMTP

If I understand the question correctly, you’re having trouble with SMTP settings in a Multisite environment; specifically, your SMTP settings are not propagating throughout your sites from the root site. It’s possible that you need to configure the SMTP settings for every site individually, even if you’ve network activated the plugin. Some plugins aren’t written … Read more

Fwd: [Website Name] Notice of Email Change [closed]

This is a feature since 4.3.0, as part of WordPress’s improved security measures (check out the source on the WordPress code reference). You can disable it with the following filter: add_filter( ‘send_email_change_email’, ‘__return_false’ );

Email stats at Ma.tt contact form

This is actually not all that hard to do using the imap functions in PHP: http://php.net/manual/en/book.imap.php Basically, he has some script somewhere which runs every hour or so. I have not seen this script, but I can venture a good guess about how it works. First, it connects to his email system, probably using imap. … Read more