Skip to main content

Questions tagged [email]

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.

Filter by
Sorted by
Tagged with
23 votes
3 answers
55k views

How to set SMTP programmatically

Assume we have blank WP site and we want to setup SMTP settings programmatically in our plugin or theme. What's the easiest way to do it without changing core files?
Eugene Manuilov's user avatar
25 votes
9 answers
45k views

How to login with email only no username?

After searching for a couple of days and reading 2 year old threads I'm having difficulty finding a solution to the problem of having users login by email only. At first I was delighted to see ...
agentsmith666's user avatar
15 votes
4 answers
17k views

changing notification emails from WordPress <wordpress>@mydomain.net to something else

How do I change notification emails address from WordPress @mydomain.net to something else. I want to do this because WordPress @mydomain.net ends up getting flagged as junk mail. Thanks Daniel
user avatar
15 votes
2 answers
52k views

Adding a second email address to a completed order in WooCommerce [closed]

Before I ask this question, I know there is a (legitimate) hesitation to answer questions here about Woo products since they have their own support and their users should be encouraged to use that. I ...
Halle's user avatar
  • 269
11 votes
5 answers
22k views

Alert Email when any Post or Page is Changed

Is there a way to have Wordpress email me whenever a Page or Post is Published?
GavinR's user avatar
  • 3,110
11 votes
5 answers
7k views

Confirmation required on email change

I'm just wondering why wordpress doesn't send confirmation mail every time user change his/her email address. How do we know that email address is not fake or mistyped? So can anyone give me some ...
PrivateUser's user avatar
  • 3,459
9 votes
6 answers
46k views

User Without Email?

When creating a user in Wordpress an email address is required for that user. The website I'm working on requires that users remain anonymous (it's part of a research study) and I'd consider email to ...
Mike Wheaton's user avatar
8 votes
2 answers
9k views

Check if post is being published for the first time, or is an already published post being updated

I am building an add-on to an events module that checks for availability, since there wasn't a function for that in that module. Now that I have built the logic, there are three emails I will need to ...
fasad's user avatar
  • 93
2 votes
1 answer
21k views

How to auto send email when publishing a custom post type?

I'd like to have an email automatically sent out to my website's subscribers when I publish a post for a specific custom post type. I've found a few plugins that will do this but only for regular ...
furio's user avatar
  • 73
64 votes
3 answers
154k views

How to change the default registration email ? (plugin and/or non-plugin)

After a new user registration, WP sends out an email with the login / password, and a link to the login page. Is there a way to change this defaut email template? I'd also like to change the subject ...
mike23's user avatar
  • 5,981
36 votes
5 answers
37k 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 ...
helenhousandi's user avatar
10 votes
1 answer
17k views

How do I customise the new user welcome email

How can I customise the the new user welcome email ? I tried 'http://www.sean-barton.co.uk/wordpress-welcome-email-editor/' however it conflicts with some of the other plugins I need to use, Cimy ...
William Macdonald's user avatar
44 votes
9 answers
26k 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 ...
Christine Cooper's user avatar
  • 8,798
23 votes
10 answers
58k views

Disable email notification after change of password

I want to disable the email notification if a user or an admin changes the password of a user. After some Googling I came to find that I need to create a plugin and overwrite the ...
Interactive's user avatar
11 votes
1 answer
3k views

Do something after sending email

I want to do something after WordPress sent an email. For example, after sending "Reset Password" email using wp_mail() function.
Ameer Mousavi's user avatar
11 votes
3 answers
31k views

Send user activation email when programmatically creating user

I wondered if someone here might be able to help. Basically, I've created a custom registration form that when validated, inserts a user to the user table. function _new_user($data) { // ...
Joe Buckle's user avatar
7 votes
3 answers
8k views

Email user when password is reset by admin

I am really new to WordPress programming and I am not even sure if this feature exists. What I am trying to do is send an email to users (not admin) when an admin changes their password/email? At ...
Shairyar Baig's user avatar
6 votes
2 answers
2k views

How to disable the "Your site has updated to WordPress x.y.z" admin email?

Using the automatic update of my self-hosted WordPress blogs, I configured automatic updates of both the WordPress core as well as WordPress plugins and themes (through this plugin). Whenever a core ...
Uwe Keim's user avatar
  • 177
5 votes
1 answer
6k views

Email confirmation on registration

I have set up the registration form using this chunk of code: wp_create_user($username, $password, $email); Note that i have did all kinds of validation before use this code. The registration is ...
Sisir's user avatar
  • 7,772
5 votes
1 answer
446 views

Writing a plugin that notify my friends of new post that mentions(@) them

For example, I write a new post with content "Today I'm happy, because I finally met the girl that @David told me about bla blah..." Once the post is published, there should be an email notification ...
Arch1tect's user avatar
  • 197
1 vote
2 answers
554 views

Locked out of my own blog and password reset not working

I have my own Wordpress installation for my infrequently updated blog. I have a habit of forgetting my password so have to request a new one and reset it every two to three months. I've done it ...
ChrisF's user avatar
  • 149
1 vote
1 answer
584 views

Few chars getting replaced with '=' in mail content in wp_mail()

Whenever mails are triggered from a WordPress site, a few alphabets are randomly getting replaced with '=' in the mail content. I have set the charset and content type in headers even then this weird ...
immazharkhan's user avatar
10 votes
2 answers
27k views

How do you update user_email on the front end in WP 3.3?

I am using the following code and everything in the user profile is updating except the user's email. In the template: global $current_user, $wp_roles; get_currentuserinfo(); /* Load the ...
Carson's user avatar
  • 2,345
9 votes
5 answers
13k views

Missing URL in password reset email

From the wp admin login page I click to reset my password (not on the theme, on wp). I get the email but it contains no url to click. Plugins are disabled. What shoud I do?
tt24's user avatar
  • 93
9 votes
7 answers
10k views

prevent users from changing their email address

does anybody know how to hook or filter the user-edit.php file so that an user's email address is disabled from editing akin to how the username is disabled ..??.. i can edit the core file (gasp) and ...
user avatar
9 votes
1 answer
66k views

How do you access the Product Short Description in a WooCommerce email template? [closed]

I would like to output the Product Short Description beneath the product name inside the order items table inside WooCommerce emails. I think I know where to place code inside the email template file, ...
eljefejb's user avatar
  • 641
6 votes
4 answers
4k views

Sending all emails using SMTP

I tried using both Configure SMTP and WP Mail SMTP to send all domain emails through my donotreply Google Apps email address, but neither plugin worked. Attempting to send test emails through either ...
vaindil's user avatar
  • 175
5 votes
4 answers
20k views

How to get current post ID in Contact Form 7 wpcf7_before_send_mail hook action

I'm trying to handle the CF7 data before send and update the current post custom field using ACF function but I'm unable to get the current post ID the form is send from. I've also tried getting the ...
DesVal's user avatar
  • 127
5 votes
1 answer
12k views

Customizing the Subject Field in WordPress' Notification Emails?

Can I customize and edit the subject field in the "Password Reset" notification mails sent from our multisite blogs? I have tried some plugins like My brand login and white label CMS etc. But I can't ...
user391's user avatar
  • 539
5 votes
6 answers
6k views

Overriding the default WP Multisite notification e-mail

Is it possible to hook in and override the default notification message for WP MS? I know the message being sent out is in /wp-admin/user-new.php if ( is_multisite() ) { function ...
Levi's user avatar
  • 175
4 votes
2 answers
16k views

wp_mail script with jQuery post

I need to send an email from a page when a form is submitted. I thought I'd use jQuery post but I'm not really sure where to start. Would I use wp_mail()? And if so how could it be called? Sorry if ...
v3nt's user avatar
  • 1,689
4 votes
2 answers
11k views

Customize wp_new_user_notification_email()

I am trying to customize the notification email sent to user that contains the link to set password. Currently, I have set up a custom user registration and login forms at the urls site.com/register ...
Nigel's user avatar
  • 161
4 votes
3 answers
17k views

Create custom welcome email without a plugin

Is there a way to customize the email content and subject for the welcome and verification emails sent during the registration process for Wordpress? I'd like to hook or filter in without using a ...
Jake Lisby's user avatar
4 votes
1 answer
9k views

Send automatic mail to Admin when user/member changes/adds profile

Is there a way to send the updated/added values from profile, when a member/user updates his/hers data, to the admin of the site or another emailadress? Can this be the first step? /* do something ...
Fredag's user avatar
  • 125
3 votes
1 answer
716 views

Send a confirmation of user role upgrade conditionally

I'm using this snippet of code to send a confirmation email to user's when their account is upgraded to a new user role. function user_role_update( $user_id, $new_role ) { $site_url = ...
Pollux Khafra's user avatar
3 votes
1 answer
10k views

Email sent from WordPress has HTML tags

Instead of: Hello, Thank you dfasdfasdfasdf asdf asdf asdfas dfs Please, feelasdf asdf asdf The email that arrives in my mailbox looks like the following: <p>Hello,</p> <p>&...
Derfder's user avatar
  • 2,052
3 votes
3 answers
20k views

How to disable wordpress confirmation email for new users

I need to disable Wordpress new user registration email confirmation link and auto generated password for new users. Users should be register with a password of their choice without email ...
Tabeno's user avatar
  • 31
3 votes
4 answers
14k views

Turn off admin emails for new user registrations

How can I turn off email notifications for the user and admin when a new user is registered? I've seen a few suggestions and plugins but none appear to work. One was to take the function from one of ...
Rob's user avatar
  • 1,406
2 votes
2 answers
8k 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 ...
danyo's user avatar
  • 355
2 votes
3 answers
7k views

How to receive an email with Wordpress?

I would like to receive datas from an external client to a Wordpress website. Example: I send an email to someone and I would like to send a copy (to archive it) to the website/smtp server. Is there ...
Recz's user avatar
  • 21
2 votes
2 answers
3k views

Can't send emails through REST API

I'm trying to send an email using wp_mail() through a REST custom route, but it's failing somewhere. EDIT: I found out where, in "sendContactMail()", $request->get_json_params(); returns ...
drake035's user avatar
  • 1,167
2 votes
1 answer
2k views

WooCommerce lost password reset flow not working with SendGrid (redirect loop)

Leaving this here for anyone who runs into the same issue because I just spent a few hours to track this down and couldn't Google my way there: The WooCommerce reset password flow is broken. The ...
slowFooMovement's user avatar
2 votes
3 answers
3k views

Sending form data via PHPMailer - How to action PHP script from a form

Some easy points on offer... I wish to action a PHP script from a WordPress page but where is the best place to store the script? The script works perfectly fine using a non-WordPress environment in ...
Paul's user avatar
  • 25
1 vote
1 answer
265 views

Prevent function from triggering again when post in specific category gets another category?

I have created a function to send out an email to authors when there post is added in the popular category for custom post type. IT WORKS but there is 1 major issue. If the post that is in the ...
JediTricks007's user avatar
1 vote
1 answer
12k views

Change Password notification text on mail

I am want to re-ride core function wp_update_user() In this function there is text This notice confirms that your password was changed on ###SITENAME###. that i want replace with some other word. I ...
Shiv Singh's user avatar
1 vote
1 answer
4k views

email wordpress users using BCC

I am currently using the below code to email users when a new post is published, but I need it to BCC all users and not TO all users. Any ideas? function email_members($post_ID) { global $wpdb; $...
Shae's user avatar
  • 731
1 vote
1 answer
336 views

Should I use the standard wp_mail() function for a premium theme?

I am creating a premium theme that includes a Contact page template. Currently, I am using the wp_mail() function to send the contact email to the administrator-specified email address. Basically, I ...
Stephen Watkins's user avatar
1 vote
1 answer
16k views

Dynamically send pdf attached to post with contact form 7 [closed]

I'm trying to send a dynamic pdf that is attached to a post via the plugin contact form 7. I assume I need to use the hook: add_action('wpcf7_before_send_mail','send_pdf'); As it's been the hook I'...
UzumakiDev's user avatar
1 vote
1 answer
6k 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 /var/www/mysite.info/htdocs/wordpress/wp-includes/pluggable....
I-M-JM's user avatar
  • 558
1 vote
3 answers
301 views

Transferring contact form input to an email account without using an email-proxy

On a virtual private server machine (Ubuntu 16.04) which I self-host on DigitalOcean I use an all-default and latest Debian stable with all-default and latest Apache, MySQL and PHP to host my ...
user avatar