Simple email format validation using regex pattern.
Details
Uses a basic regex pattern to validate email format. This is not exhaustive but catches most common formatting errors. Pattern checks for:
At least one character before @
@ symbol
At least one character after @
Dot (.) in domain
At least two characters after final dot
When allow_disp_name = TRUE, also accepts RFC 5322 style addresses
like "Display Name email@example.com".
See also
send_contact_email(),send_wp_email()for email sending functions that use this validationget_resend_config()for API configuration
