wp_mail() is a wrapper for PHPMailer which is a wrapper for PHP’s mail() function.

learn more… | top users | synonyms

1
vote
1answer
226 views

3 different mail notifications

I'm building a small tracker and need to send mail notifications on specific actions. Thought-out notifications: Administrator gets a notification email when a new ticket is published Author gets a ...
1
vote
1answer
961 views

Do I have to override the wp_mail() pluggable function with writing a plugin?

If I want to override wp_password_change_notification, do I have to write a plugin to do this? It seems to have no effect in functions.php of my theme. The only thing I need to do is change the ...
4
votes
1answer
7k 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 ...
2
votes
1answer
515 views

Using wp_mail - verify that email was sent?

When using wp_mail, is there any way to verify that the email was sent correctly?
0
votes
1answer
267 views

If/elseif statement within wp_mail function

I need to know what is wrong with my if statement here: //EMAIL ADMIN BASED ON PROBLEM_TYPE function new_post_creation_email() { global $post; $postid = $post->ID; $problem_type = ...
0
votes
1answer
318 views

Conditional wp_mail statement on post

I am currently posting from the front end using a similar model as http://voodoopress.com/2011/03/review-of-posting-from-front-end-form/. I want to send an email to certain addresses based on the ...
1
vote
1answer
3k 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 ...
1
vote
2answers
3k 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
2answers
2k views

Using wp_schedule_single_event with arguments to send email

I'm trying to schedule a pseudo cron job to send an email after a set amount of time utilizing a WordPress plugin. So far, I've been able to make this code run when I hard code the email address and ...
0
votes
1answer
2k views

resend user login & password with custom button

How would you resend the login & password to a user who has forgotten his password? In this case they don't want to go to the "password" forgotten page. Additional Q: Mass re-sending of ...
2
votes
1answer
299 views

Pluggable function and activation check?

Plugin is defining pluggable wp_mail() function. My idea was to check if function is defined already and throw warning if other plugin beat me to it. However this warning causes issues on activation. ...
16
votes
3answers
8k 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 ...