$email = 'test@xyz.com';
$subject = 'Taxi Booking Response';
$headers = 'From: test@taxieu.cz;'."\r\n";
$headers .= 'Content-Type: text/html; charset=UTF-8';
$body = 'dobrý ten, zkušební odeslání kontaktního formuláře';
wp_mail( $email, $subject, $body, $headers );
I've used this code to send email but not working sending the email though it return a true
value.But when I am using
$email = 'test@xyz.com';
$subject = 'Taxi Booking Response';
$headers = array('Content-Type: text/html; charset=UTF-8');
$body = 'dobrý ten, zkušební odeslání kontaktního formuláře';
wp_mail( $email, $subject, $body, $headers );
Then it working fine in Namecheap hosting's website but not in other hosting's website. I would appriciate if anyone help me with a solution.
Regards