wp_mail() is a wrapper for PHPMailer which is a wrapper for PHP’s mail() function.
6
votes
1answer
665 views
What is the advantage of using wp_mail?
What is the advantage of using wp_mail() over mail(). Codex says they're similar, but they seem to be very similar.
0
votes
1answer
302 views
Fatal error: Call to undefined function wp_mail()
I am using a plugin wordpress-simple-paypal-shopping-cart for my cart requirement. I am trying to send an email through this plugin when some payment is made by using IPN.
My code :
$invoiceProducts ...
14
votes
3answers
5k views
Why won't wp_mail() let me set the From: header when plain old PHP mail() will?
When I use wp_mail( $to, $subject, $message, $headers ) (with values in place, of course), the email gets sent with a from name and email that isn't set anywhere I can find (not even in PHP or Apache ...
1
vote
2answers
1k views
wp_mail script with jquery post
need to send an email from a page when a form is submitted.
Thought i'd use jquery post but not really sure where to start. Would i use wp_mail? And if so how could it be called ?
Sorry if that ...
3
votes
1answer
3k views
Is there a way to send HTML formatted emails with Wordpress' wp_mail function?
Is there an action_hook or something similar that could help me achieve this?
I tried adding markup in a PHP string variable and just fired off an email with the wp_mail function like so:
$email_to ...
1
vote
1answer
2k views
wp_mail not recognizing cc and bcc headers
I am using WordPress 3.1.3
I am getting following notices when I use wp_mail with cc and bcc headers.
Notice: Undefined variable: cc in ...