Tag Info

New answers tagged


Filter is_email and sanitize_email, then apply a better check: namespace Wpse\Email; add_filter( 'is_email', __NAMESPACE__ . '\check_mail_address', 10, 2 ); add_filter( 'sanitize_email', __NAMESPACE__ . '\check_mail_address', 10, 2 ); function check_mail_address( $result, $email ) { return filter_var( $email, FILTER_VALIDATE_EMAIL ); } The PHP ...


Do you mean to send a plain text version along-side the HTML version? If so I found this page helpful in setting it up: The crux of it comes down to this: //create a boundary for the email. This $boundary = uniqid('np'); //headers - specify your from email address and name here //and specify the boundary for the email $headers = "MIME-Version: ...

Top 50 recent answers are included