It is possible to send email from WordPress using the built in `wp_mail` function. Several filters and hooks are available for additional options. There are plugins for extensive functionality, such as sending bulk mail like newsletters.

learn more… | top users | synonyms (1)

0
votes
1answer
21 views

Send email daily using `wp_mail`

I want to send email daily 12:54pm using wp_mail function, but it send mail continuously. Plz suggest what is wrong? <?php $timeg = date( 'g:ia', current_time( 'timestamp', 0 )); $timem = '12:...
-1
votes
0answers
18 views

How to hook for disabling sending processing order email notification if order total value is 0 - Woocommerce?

I need to disable woocommerce sending processing order email notification if order total value is 0. I also tried: : add_action( 'woocommerce_email', 'unhook_those_pesky_emails' ); function ...
0
votes
0answers
17 views

HTML email template using custom post type on genesis framework

I'm trying to generate HTML emails using a custom post type. What I would like to do is slot content from post type post into this template to build an editoral newsletter. The problem I'm having is I ...
1
vote
1answer
19 views

Is it possible to change an existing post status from 'pending' to 'publish' via email?

I am building a website which uses a custom form plugin, and the plugin gives me the ability to create posts (pending or published) using the data from the form. Upon submission of the form, I want a ...
0
votes
1answer
25 views

WordPress stops executing code after the require() method

I'm trying to set up SMTP for my custom contact form. I have placed the latest PHPMailer folder in my theme folder. I created a page template for Contact Form and added the code for the contact ...
-1
votes
0answers
25 views

Why was I subscribed to a WordPress blog that I didn't subscribe to? [closed]

Out of the blue, I get an email: "Congratulations, you are now subscribed to the site (Name Removed) (http://www.example.com) and will receive an email notification when a new post is made." ...
1
vote
2answers
6k 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
0answers
23 views

how to send email automatically to those who did not login to website

I want to send an email for inviting up users back to my website who didnt login to site and check out latest posts can anyone tell me how i could do this ? i dont know to program so much but let me ...
-1
votes
1answer
163 views

How to send confirmation email after payment made via paypal?

I am developing Blog website and i have used the custom paypal button, but now i want to send confirmation email after payment made via paypal. I had searched for IPN's API but don't know how to ...
0
votes
0answers
10 views

overriding wp_new_user_notification function

Myself trying to customize the wordpress user registration greeting email by referring this link and my code as follows. function wp_new_user_notification($user_id, $plaintext_pass) { $user = ...
-3
votes
1answer
20 views

how can i inform other users about new user registration? [closed]

I try to inform other users about new user registration in wordpress but I did not succeed. please help me I use ultimate member and user pro plugin.
1
vote
1answer
33 views

Email 'from address' has a www in it

When sending emails from my WordPress install, my 'from address' includes a www. Currently, it's sending email from web@www.domain.com when what I want is web@domain.com. However, if I change the ...
22
votes
3answers
3k views

Sending multipart (text/html) emails via wp_mail() will likely get your domain banned

Summary Because of a bug in WP Core, sending multipart emails (html/text) with wp_mail() (to reduce chance of emails ending up in spam folders) will ironically result with your domain being blocked ...
0
votes
1answer
62 views

How do I call wp_mail from HTML?

This is meant to be up in the next week or so, but I am having a lot of trouble getting the site to send emails to an address specified in an input box. I need to use wp_mail as I need to be able to ...
3
votes
1answer
35 views

Login email after registration never sent or received

On my site, after a user registers they receive an email with an activation link. When clicking the activation link, sometimes the page doesn't load, sometimes it does (usually if I click the link ...
0
votes
0answers
15 views

How I can add confirm email in custom register page with out plugin in wordpress?

I made a custom register page that you can see the code below: <?php require_once(ABSPATH . WPINC . '/registration.php'); global $wpdb, $user_ID; //Check whether the user is already logged in ...
0
votes
2answers
476 views

New User Registration email

I am receiving an email notification whenever a new user is added to my site. I need to change the default 'send-to' address. It is using a personal email, rather than my 'webmaster' email. Where is ...
2
votes
1answer
1k views

Can I configure WordPress to use postfix without a plugin?

I am developing a WordPress site on a vagrant box and have installed postfix in order to test email notifications. At this guest OS (Ubuntu) level, I am able to end a test email: echo "Test mail ...
0
votes
1answer
32 views

How to send email with wp_mail() with from email taken from contact form instead of the host?

I have set up SMTL like this, add_action( "phpmailer_init", "send_smtp_email" ); function send_smtp_email( $phpmailer ) { ini_set("sendmail_from","xyz@gmail.com"); ini_set("sendmail_path","xyz@gmail....
0
votes
0answers
25 views

Anonymous Email Like Craigslist Has?

I have a question that I've searched for on Google and here but I haven't been able to find a satisfactory answer yet so I figured I'd ask it here. I'm in the early stages of designing a WordPress ...
0
votes
1answer
28 views

Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge

So I am using jQuery and pHp together to send an email to myself whenever a user clicks on the update button of their Ultimate Member form. However, the email only sends when a user is using Chrome, ...
3
votes
2answers
38 views

How to change email notification for Comments

How do you change the user that gets the notification email announcement for new comments and comment moderation? WordPress sends the notices to the Admin user. My client is the editor of the site. I ...
-1
votes
1answer
489 views

How to Configure SMTP on wordpress Cant Send Email

I am Currently working on a project in which my only problem is SENDING an email from site to Gmaill yahoo etc. I want to configure the SMTP so I can make Independent Email Sending. My problem is ...
0
votes
1answer
14 views

WordPress get_the_content losing formatting when emailed

I'm pulling the content of a post outside of the loop to send in an email like so: $content = get_the_content(); However, when I craft the body of the email: $body = 'Hello: <br/><br/&...
1
vote
2answers
797 views

Send email only upon draft

I'm trying to send an email only upon saving a post as a draft, this doesn't seem to work with the current code: add_action( 'save_post', 'er_send_email_on_post_draft_save' ); function ...
0
votes
1answer
33 views

Mailing list sign up form without plugin

Would anybody be so kind and guide me through how to create an email sign up form for WordPress which does the following: Visitors enter email address, it validates it and inserts into the database ...
7
votes
4answers
3k views

Disable user registration password email

So, WordPress 4.3 has a new password system as we all know. Unfortunately, this new system has done away with the ability to NOT send new users an email. My client was using a system where he sent a ...
0
votes
0answers
17 views

How can I deny the user the insertion of emails in topics / comments and stay on the same page?

I have this function that checks whether or not a content contains an email: function fw_check_if_content_contains_email( $content ) { if (preg_match('/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/...
0
votes
1answer
48 views

Wordpress Registration Email by Role

I'm wanting to send out a custom html email to a new user based on their role during registration. So, I have 2 roles that will be specifically registering on the site: photographer and subscriber and ...
-3
votes
1answer
297 views

email notification to specific email adress

I created a custom post type. now I need to send specific email notification! Is possible to send email notification of some Post Type to specific user?
0
votes
1answer
19 views

Wp_mail doesnt work

I created a form for mail sending, but it does not work. Email function is enabled in php. if (!$error_msg) { $to = "mail@to.send"; $headers[] = 'Content-Type: text/html; charset=UTF-8'; $...
0
votes
1answer
42 views

Add custom shortcodes to the Welcome Mail

I need to add a custom shortcode to the welcome email of my website. I'm not expert; what I need is in plugabble.php file? I tried a lot of plugins for edit email template but nothing seems work. ...
0
votes
1answer
22 views

wp_email not sending the mails in multisite sub domain

I have a multisite enabled wordpress configurtaion say my main domain is http://www.example.com. It have several subdomains such as http://test1.example.com, http://test2.example.com and so on. I ...
0
votes
1answer
94 views

WP mail sent to MS Exchange recipients = occasional email corruption?

My office processes many email receipts from WordPress-based forms (primarily using the Formidable Pro plugin). Starting in the last 6 months, one out of every ~15 emails sent from WP will come ...
0
votes
0answers
27 views

Gravity Forms will only send e-mail from admin

I've created a gravity form for e-mail feedback and what we would like to do is have the message sent out to appear to be from the address the person enters in the form. I created the form, and setup ...
0
votes
0answers
25 views

send email to user

I want to send an email to users based on the value of the database. To clarify if the user exceeds the value set in database, send him an email Automatic But I do not know where to write the code in ...
0
votes
1answer
16 views

how to disable the e-mail verification on wp-admin/options-general.php multisite admin e-mail

I have a multsite that has a bunch of blank e-mail addresses in the admin e-mail address feilds, and I just want to update them without the e-mails being verified. Background is that I am a web ...
0
votes
2answers
429 views

One comment per user email per post

i have this code to limit the comments per user. <!-- #only one comment --> <?php global $current_user,$post; $args = array('user_id' => $current_user->ID,'post_id' => $post->ID)...
2
votes
1answer
380 views

Disable WP notifications for commenting on own posts

How/where can I disable WP email notifications for commenting on own posts? I want to do this globally for all users on the site, not only per-user through WP admin. Are there any hooks which I can ...
3
votes
3answers
5k views

Get user id from email?

I'm working on an email system, and I'm onto the unsubscribing stage. Since most of my users would not know their user ID, I'm asking them to put their email into a text box (definitely preferred, ...
0
votes
1answer
61 views

check whether a mail is send through contact form 7 using php

When the user clicks download button, a contact form should be opened, and when he submits it successfully, a file should be downloaded. I'm using contact form 7 for sending the mail. Is there any ...
-1
votes
1answer
80 views

How to override email text New Customer Order?

Im trying to override the admin email template text "New customer order" to "New order" in function.php, but i can not finde any info on google. Can somebody please give me a hint! :)
23
votes
5answers
16k 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 ...
0
votes
0answers
27 views

Where to set sendmail_from?

I'm not sure where in WordPress to do something like: ini_set('sendmail_from','me@mysite.com') First, is this correct? There's a plugin that sends email, but the email gets blocked from my email ...
0
votes
0answers
20 views

How to debug Wordpress sending email *occasionally*?

I have a problem with Wordpress sending registration email occasionally. I tried to register several time to my wordpress site (under same conditions) and sometimes I do not receive confirmation mail. ...
0
votes
1answer
44 views

Send e-mail from admin area to adresses in custom field

My client wants to be able to send an e-mail from the Page Editing Screen to a number of e-mail addresses. Every page has a custom field called email_addresses that takes comma seperated addresses: ...
7
votes
3answers
251 views

How to add headers to outgoing email?

I want to add an additional header to outgoing emails on my sites, so I can easily determine which site sent a given email. (I put a standard functionality plugin on all of my sites, so this is easy ...
0
votes
1answer
56 views

Contact forms not sending mails

I used two plugins, contact form7 and pirate form, both display the message of succes but nothing coming in my inbox. Alsto tried the SMTP with google and hotmail but i recive a message that someone ...
0
votes
0answers
42 views

How To Setup AWS SES to send Wordpress email using SMTP

Can anyone provide a step-by-step guide for how to setup SMTP mail functionality (via AWS SES service) for a Wordpress site that is being hosted in AWS (via an EC2 Instance)? I'm know this is some ...
1
vote
2answers
3k views

wp_mail recipient array not sending?

I am using wp_mail to send an email to multiple recipients. my mail function looks like this: wp_mail($group_emails, 'my subject', 'my message', $headers); $group_emails is an array of email ...