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
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?
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
10
votes
2answers
34k 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 ...
53
votes
3answers
122k 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 ...
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 ...
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 ...
9
votes
4answers
4k 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 ...
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 ...
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?
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 ...
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) { // ...
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.
2
votes
1answer
14k 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 ...
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 ...
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 ...
5
votes
1answer
417 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
2answers
907 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 ...
1
vote
2answers
536 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 ...
0
votes
1answer
357 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 ...
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
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 ...
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 ...
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 ...
3
votes
1answer
501 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 = ...
1
vote
1answer
12k 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'...
1
vote
2answers
7k 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 ...
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
5answers
5k 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 ...
3
votes
1answer
8k 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 ...
2
votes
3answers
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 ...
0
votes
2answers
735 views

Need to manually regsiter user, send the password and retreive their user ID

I'm writing a custom signup script for users to register with on my MU-setup. One problem I'm having is that wpmu_signup_user() sends the password activation email but it doesn't return the user ID ...
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?
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 ...
2
votes
3answers
5k 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 ...
1
vote
3answers
112 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 ...
1
vote
1answer
927 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 ...
1
vote
1answer
314 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 ...
1
vote
1answer
269 views

On form submission how to send 2 email to different users

I have created a custom php form and on its submission email is sent to user but i want to send email to admin as well to keep admin up-to-date about form submissions on website using wp_mail. <...
1
vote
1answer
5k 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....
1
vote
1answer
118 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 ...
1
vote
1answer
3k 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; $...
0
votes
2answers
599 views

Send batch of posts as HTML Email?

Looking for a little help getting to grips with a quote, part of which is producing quarterly reports consisting on all the posts from that quarter. My question is two fold - Is there a plugin that ...
0
votes
1answer
1k views

wpmu_signup_user_notification filter not working

I'm trying to customise the activation email in WordPress. I'm using WordPress 3.8 Multisite (subdomain). I added the following code (from http://daan.kortenba.ch/filter-...
0
votes
1answer
630 views

Adding attachment file name to email link

I'm doing up a photography site where each post is a photo project, and each post attachment will be displayed on its own attachment page (linked to from the main post page). On the attachment page, ...
0
votes
1answer
835 views

Is there a plugin that allows a user of your site to get an email from you with an attachment?

I was wondering if there was a plugin that could do the following: user goes to page on wordpress site user fills out their email address Clicks Email Form button user gets an email from my ...
0
votes
2answers
580 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)...
0
votes
2answers
299 views

Emailing only the users of a MultiSites Sub-Sites

Context: Creating a MultiSite in which each Sub-Site will have it's own set of users that they belong to. These users are only able to view their own site. I was wondering what the easiest way to ...
0
votes
1answer
3k views

Using email_exists() wp function in an ajax request

I'm requesting the wordpress function if (email_exists($email)) { ... } from a file (email_check.php) via ajax. Using this function is causing a server error though. The origin (from an input text ...