Tagged Questions
0
votes
1answer
78 views
Mail not sent when I set HTML headers
$subject = get_the_title();
$sender_name = get_bloginfo('name');
$blog_url = get_bloginfo('url');
$to = 'myemail@mydomainname.com';
$subject = 'the subject';
$message = 'hello';
$headers = ...
0
votes
2answers
302 views
Wordpress refuses to send mail, “…your host may have disabled the mail() function”
I recently implemented a comment area on my website and tried to get the email notification functionality to work. It doesn't seem to want to send email notifications when new comments are made. Just ...
3
votes
2answers
153 views
wp_mail function timing out
I have the following function. This is part of a membership-based site. When a post of the type "message" is moved to Publish status, it should send an email to all users who belong (custom user meta) ...
0
votes
1answer
128 views
Validate emails in array using foreach
How do I validate an array of emails from a textbox before sending them to the wp_mail function?
$emails = 'test@test.com;test2@test2.com
email3@email3.com,email4@email4.com, email5.com';
$emails = ...
2
votes
1answer
223 views
How do I override the Message-ID header of wp_mail function?
I have a custom notification function for our comments editor, who prefers to have all comments from one article threaded together in her email client. To achieve this, I'm creating a custom ...