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
53
votes
3answers
123k 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 ...
36
votes
7answers
17k 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 ...
32
votes
5answers
30k 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 ...
17
votes
3answers
40k views

What's the easiest way to setup SMTP settings 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?
17
votes
6answers
27k 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 ...
14
votes
4answers
15k 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
13
votes
6answers
19k views

Disable email notification after change of password

I want to disable the emailnotification if a user or an admin changes the password of a user. After some Googleling I came to find that I need to create a plugin and overwrite the ...
12
votes
5answers
11k 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 ...
11
votes
1answer
2k 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.
10
votes
2answers
35k 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 ...
10
votes
3answers
32k views

How can i change email template for new user

When I add a new customer the email goes to new user in this format: From: WordPress [wordpress@siteurl.com] Subject: [site name] Your user name and password Message: username: user ...
10
votes
5answers
17k 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?
9
votes
8answers
80k 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 to work. It doesn't seem to want to send email notifications when new comments are made. Just to see if ...
9
votes
4answers
5k 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 ...
9
votes
3answers
21k 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) { // ...
9
votes
1answer
14k 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 ...
8
votes
3answers
3k 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 ...
8
votes
1answer
40k 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, ...
7
votes
3answers
5k 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 ...
7
votes
4answers
2k views

Allow users to create their own feed from selected categories?

I've been wandering around on the web for the last couple of hours wondering if there's a way to allow users to build their own RSS feed by selecting categories within WordPress, that could then be ...
6
votes
2answers
13k 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 ...
6
votes
4answers
6k 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?
6
votes
2answers
5k 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 ...
6
votes
3answers
2k views

Subscribe to email for security fixes?

Is there any email alert list for security fixes? I'd rather not rely on just an RSS feed.
6
votes
1answer
8k views

wp_mail and BCC headers

I'm using WP 3.3.1 I am trying to add BCC onto the headers of an email I'm sending out, but the BCC is not being added. public $from = "sender@example.com"; public $replyTo = "sender@example.com"; ...
5
votes
5answers
24k 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 ...
5
votes
2answers
952 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 ...
5
votes
3answers
7k views

Send Admin Emails to Multiple Email Addresses

Is there a hook that would allow me to email multiple email addresses for the default admin email notifications? I was hoping I could build an array: $adminEmails = array('me1@example.com', 'me2@...
5
votes
1answer
12k views

Editing 'Password Reset' E-mail

I'm trying to customize the e-mail that you receive from WordPress when you reset your password. Right now it's a WordPress e-mail but I'd like to brand it with our company's logo and custom ...
5
votes
6answers
4k 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 ...
5
votes
3answers
22k views

Send email when a new post is published [closed]

I'm looking for a method, or plugin, that will allow me to do the following: User can signup to a 'notifications' email list When a new post is published on the site, users on this list are ...
5
votes
1answer
3k views

What are the differences between wp_users and wp_usermeta tables?

What are the differences between the wp_users and wp_usermeta tables? I use the Email Login plugin and I just noticed that if a user changes his email in the profile page, it is saved in the ...
5
votes
1answer
418 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 ...
5
votes
3answers
1k views

How can I send a welcome email to a user AFTER they login for the first time?

What I want to do is after a user creates an account... they log in for the first time it will kick off a welcome email to the user that will give them an overview of the site and suggestions of what ...
5
votes
3answers
3k 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 ...
4
votes
2answers
12k 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 ...
4
votes
1answer
7k views

Customizing lost password email

I need to change the default email text that will be sent to recover the password. I have already changed the mail of activation in multisite: // Start changing email body function ...
4
votes
2answers
4k views

wp_mail - Remove sitename from email subject

Can someone tell me how to remove site name from the email subject. As of now my email subject looks like this: [sitename] - Subject goes here I want it to look like this: Subject goes here I ...
4
votes
3answers
5k views

Sends out email to admin

Are there any plugin or code that sends out a email to me (admin) when a author or writer publish a post?
4
votes
3answers
7k views

Allow Duplicate Email Address for Different Users

I need to be able to have different users share the same email address. (Running a site where parents will be creating accounts for their children who may not have their own email address, so the ...
4
votes
3answers
916 views

Email Notifications of new posts to users - suggestions [closed]

I currently am using the Subscriber2 plugin to send email notifications to subscribers of new blog posts, but that plugin has not been working properly for a while on my site. Can someone suggest ...
4
votes
2answers
7k views

Disable new user notification to admin email

I get an email notifying me of every new user registration on my site and now that it gets hundreds or thousands of new users a day, it's getting a little out of hand. It seems like it'd be a ...
4
votes
1answer
9k 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 ...
4
votes
2answers
15k views

get_user_meta() doesn't include user email?

I simply wonder why <?php var_dump(get_user_meta(4)); ?> doesn't contain an email address of the user. Instead I have to use get_userdata(4)->user_email; to query the email of the user. ...
4
votes
1answer
5k 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 ...
4
votes
2answers
5k 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 ...
4
votes
3answers
3k 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 message-...
4
votes
3answers
12k 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 ...
3
votes
1answer
13k views

“Reply-to Address” Email

I searched the web for last couple of days for "Reply-to Address" in the email but had no luck so, here I am. In my wordpress site, there are multiple store owners who can sell their products. When ...
3
votes
4answers
9k 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 ...