0
votes
0answers
8 views

Validate email, if field has characters

I am building a small form on my website where I want users to be able to send me a message and have the option to include their email in an email input. It's fairly simple: ...
0
votes
0answers
13 views

Custom subscription abandonment

I'm using a subscription service through a small third-party company. I've asked them to consider sending emails to users that drop-off from the subscription but they don't want to implement such a ...
0
votes
1answer
309 views

Only single mail function is working from double mail functions one after another on wordpress

I am having a html form in my wordpress page and i have call action on my form. The file which is calling an action is saved in the root of wordpress directory. sending-mail.php I have two mail ...
0
votes
0answers
96 views

PHP random number in email

I have a Wordpress website where i am making a form so that when a user fills out that form he gets a confirmation email and receives a random order number. I have this PHP function which creates that ...
0
votes
1answer
124 views

get_post_meta is always empty when I use wp_mail

I made this action hook which will send an email to the users every time a new post in the custom post type "events" is made. function email_members($post_id) { global $wpdb; $usersarray = ...
-1
votes
2answers
60 views

How can I prevent wordpress from sending emails

I would like to stop all email functionality in my wordpress installation. Is this possible with a global flag? or maybe by forbidding this installation to use the php mail function at all in ...
0
votes
1answer
123 views

Cron job to call php to email last 24 hours posts

We have been trying to call via CronJob a PHP script that will email the past 24 hours posts using the 'post_type' = 'reservations' filter. <?php query_posts( array( 'post_type' => ...
0
votes
1answer
66 views

How to check “From Email” via WordPress before an email is sent

Is it possible to check an email from email via WordPress before an email is sent? I'm working on a phpmailer plugin to send WordPress email via Amazon SES (which requires all emails to be verified). ...
1
vote
1answer
1k 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 = ...
3
votes
4answers
12k 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 ...
1
vote
1answer
597 views

Notify comment author upon reply

To improve communication between guest commenters and authors, I am fiddling with a script that sends an email to the author of a comment when it receives a reply. Here is how the code looks so far: ...
0
votes
2answers
143 views

Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )

I have updated my permalink structure to /archive/%post_id%, but if someone uses a URL like /archive/456857 instead of the full URL of /blog-test, WordPress shows the post without giving a 301 to the ...
3
votes
1answer
724 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 ...
0
votes
1answer
515 views

Can I get an email notification when media is uploaded to the media library?

I have a front end uploader for members only, utilizing this code: <?php function insert_attachment_form($postID) { ?> <form id="file-form" name="file-form" method="POST" action="" ...
0
votes
1answer
207 views

Use of antispambot with $curauth->email

This is probably pretty simple, but... I want to use the WP function antispambot not on get_the_author_email but on a value in a field I added to User Profile called publicemail. Everything I've ...
0
votes
1answer
642 views

How do I attach an invoice PDF to an email in the Dukapress plugin for Wordpress?

I'm using the eCommerce plugin Dukapress for my WordPress website. I want to attach the invoice PDF to the admin's email, but I'm not sure how to go about this. I'm under the impression that the only ...