php mail function
-
Hi, I had a problem with the email headers not properly with qmail. I was able to fix this by changing all instances of the php mail() function to the wordpress wp_mail() function. This is a very easy fix, simply add wp_ to the front of all mail functions.
eg change
mail($to, $subject, $theMessage ,$headers);
to
wp_mail($to, $subject, $theMessage ,$headers);
cheers
John
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘php mail function’ is closed to new replies.