Hello @alexandrubodea
thank you for your help.
1. checked, not working
2. i cloned the shop, build a staging and disabled all plugins, still 2 emails by pw resetting.
In the live version logs, i can clearly see that the email are sent from:
/wp-content/plugins/profile-builder/features/functions.php:250
So here is the code, maybe you can check it for any issues:
function wppb_mail( $to, $subject, $message, $message_from = null, $context = null, $headers = ” ) {
$to = apply_filters( ‘wppb_send_email_to’, $to, $context );
$send_email = apply_filters( ‘wppb_send_email’, true, $to, $subject, $message, $context );
$message = apply_filters( ‘wppb_email_message’, $message, $context );
$message = wppb_maybe_add_propper_html_tags_to_email( $message );
do_action( ‘wppb_before_sending_email’, $to, $subject, $message, $send_email, $context );
if ( $send_email ) {
//we add this filter to enable html encoding
if( apply_filters( ‘wppb_mail_enable_html’, true, $context, $to, $subject, $message ) )
add_filter(‘wp_mail_content_type’, ‘wppb_html_content_type’ );
$atts = apply_filters( ‘wppb_mail’, compact( ‘to’, ‘subject’, ‘message’, ‘headers’ ), $context );
$sent = wp_mail( $atts[‘to’] , html_entity_decode( htmlspecialchars_decode( $atts[‘subject’], ENT_QUOTES ), ENT_QUOTES ), $atts[‘message’], $atts[‘headers’] );
do_action( ‘wppb_after_sending_email’, $sent, $to, $subject, $message, $send_email, $context );
return $sent;
}
return ”;
}
Thank you for helping in advance
Best regards!
-
This reply was modified 2 years, 4 months ago by
18bits.