Using wp_mail() similar to Subscribe by email

hello!

I have a question.

I am trying to send a post by email using the following in a plugin.

$admin_email = get_option('admin_email');
$from_email = $admin_email;
$blog_name = get_option('blogname');
$message_headers = "MIME-Version: 1.0\n" . "From: " . $blog_name .  " <{$from_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
wp_mail($to, $title, $content, $message_headers);

I noticed that you have a similar code in the subscribe-by-email but coding here is not sending the email. Could you tell me if you see anything wrong here? or if the system is already sending an email via wp_mail() with another plugin would it block a second plugin from sending during the same "publish post" action ?

thanks,
Joe