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
1
vote
1answer
5k views

WooCommerce New customer email Hook? [closed]

I've created a sign up page for new customers to create an account. This is working fine but I would like to hook into WooCommerce customer_new_account inside WooCommerce/Classes/Emails/class-wc-...
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
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; $...
1
vote
2answers
693 views

Wordpress E-mail Config

For built-in Wordpress functions such as the "forgot password" option, where is the SMTP server configured? Does it just default to the local daemon? What e-mail does it send messages as?
1
vote
2answers
2k views

Adding second Email address for WP user notifications

The WP systems sends a lot of mails to authors. There also plugins who use email notifications for authors. But, let say I have a user, who is managed by two persons (because it's a company, an ...
1
vote
2answers
699 views

Tag subscription option in wordpress. How?

I love stackexchange's tag subscription feature. Now i'm receiving email notifications only for the topics i'm interested in. I would like to have this feature in my wordpress site. Is there any good ...
1
vote
2answers
3k views

Post Via Email - How to send Attachments with it (e.g. PDF File or JPEG Image)?

In regards to the 'Post via Email' feature, does anyone know of a way to send an attachment with it? In this case it would be a PDF document.
1
vote
1answer
19 views

Is there an official email form widget or block?

I want to add an email form to a wordpress site, but all of the existing ones I see are from third parties. Doesn't Wordpress offer an official email form to add as a widget or block?
1
vote
1answer
194 views

How to pass external variables to the wp_new_user_notification_email filter?

We're trying to customize the default e-mail new users receive when registering on our website. For this, we are using the wp_new_user_notification_email filter added in WP4.9.0 For our functions.php ...
1
vote
1answer
963 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
2answers
339 views

How to change WordPress email notification sender?

I used this code for changing the email sender name from Wordpress to my own title. function wpb_sender_email($original_email_address) { return 'info@mydomain.com'; } // Function to change ...
1
vote
1answer
31 views

Reject Comments Based on Author Email

I know that I can't guarantee emails are valid without signups, but I noticed a problematic user wanting to troll was using @example.com email addresses. How might I maintain a blacklist of such ...
1
vote
1answer
405 views

Woocommerce email template customization [closed]

I have the latest version(3.3.4) of woocommerce and I'm trying to customise the email templates that come with it. Tried following this tutorial, but the version I am using doesn't seem to contain ...
1
vote
1answer
271 views

Email Bounce Address

I'm having a little issue with my SMTP. I use a plugin WP MAIL to manage the email configurations as it makes it easy to run in/outgoing emails without leaving unsent or stuck mails. Everything is ...
1
vote
2answers
117 views

Right practice to edit WP reset password email

Since I'm pretty new to WordPress, I would like to know what is the right way to edit the WP reset password email. I would like to change the message. I see that I need to edit the ...
1
vote
1answer
2k views

Contact form sender email

I've spent huge amount of hours on Google and can't find the solution. I am using Wordpress and I want to find some plugin or any other solution which can do the following: When user sends contact ...
1
vote
1answer
4k views

Attaching a pdf to Contact Form 7 e-mail via functions.php [closed]

I'm trying to attach pdf files to an e-mail manually and I did some research on the topic and found this code: add_action('wpcf7_before_send_mail','send_pdf'); function send_pdf( $cf7 ) { $id = ...
1
vote
3answers
3k views

PHP mail() works but wp_mail() does not

I'm totally lost by the mail function in WordPress (WP 4.6 multisites). I tested locally (on my localhost) WordPress send mail. This works fine at first sight (I don't really know why because I've ...
1
vote
1answer
2k 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 ...
1
vote
1answer
122 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
47 views

Send transactional email: first user's post

I want to add this piece of code to my functions.php file, so that when a user creates its first post, he receives an email to congratulate him. function set_mail_html_content_type() { return '...
1
vote
1answer
292 views

Help to change the text for new website notification (wpmu_welcome_notification)

i am trying to change the text for new website notification (wpmu_welcome_notification): in the core file i see wordpress using this function to send the email when new site created: the quasion is ...
1
vote
1answer
2k views

Sanitizing and validating email field

Should I use is_email() to validate an email field? In WP. I've put the email field in a widget. I would really appreciate some help. function update($new_instance, $old_instance) { $instance = $...
1
vote
1answer
2k views

Send email to user that his post has been rejected

I am searching for a solution for the following problem: I am using WP User Frontend, so that users can create posts in the frontend. After saving, the admin needs to review the post, and the ...
1
vote
1answer
2k views

Can't send mails using contact plugin [closed]

There are many contact form plugins available but none of them succeeds in sending mail even contact 7 form. Only the default contact form of Jetpack wordpress succeeds in sending the mail. But the ...
1
vote
1answer
338 views

Wordpress comments email notification for authors

I'm admin of a question and answers website in WordPress. All users are defined like authors. I have the problem that when I approve a comment ( an answer to a question), the author receives too much ...
1
vote
2answers
7k views

Wordpress Add New User - Send an Activation Email

I edited the Add New User Profile page to add some custom fields (I'm not using multisite). My question is if there is a way to send out an activation/confirmation email to new users once I manually ...
1
vote
2answers
2k 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 ...
1
vote
2answers
164 views

Mechanism to send to users of secured WordPress install new notifications by SMS or email?

I have a family website, private, requires a WordPress account, in WordPress. Some of my family members would like to get the option for notifications of new posts by email or text message. Email ...
1
vote
2answers
417 views

Email friend for each Custom Post Type posts on a page

I have a Custom Post Type called 'Property'. I display a list of CPT properties on a page: 10 per page with pagination. I would like to add an "Email friend" link to every property on the list, so a ...
1
vote
1answer
31 views

Wordpress 'on behalf of' email

Hi all the below contains example names so not to give my website away. I have a wordpress site called blah.com that has a woocommerce shopping cart which is blah.com/products When someone receives ...
1
vote
1answer
13 views

Hook into and send mail using WP Mail SMTP type plugin from HTML static front page?

I am reusing an HTML Bootstrap page as a static front page on a WordPress site. The front page has a form in it which I want to use as a Contact Me form. I've installed the widely used WP Mail SMTP ...
1
vote
1answer
79 views

WooCommerce: The model of e-mail is displaying only the html, not css

I'm using the version 3.4.7 of WooCommerce and configuring the e-mails, I stare with a strange thing: the templates didn't appear the css. I experienced this in all of my sites, this is a test site ...
1
vote
1answer
44 views

How do I hide the purchase note in the WooCommerce 'order completed' email?

For every product in WooCommerce I can add a purchase note (screenshot). This purchase note is displayed on all subsequent emails to the customer. Via custom PHP, how can I hide the purchase note on ...
1
vote
1answer
88 views

Set a condition based on WooCommerce checkout city field while placing order

How to make condition on WooCommerce checkout field like when user select city "Indore" then on place order email goes to indore@gmail.com and when he select "Bhopal" city then email goes to bhopal@...
1
vote
3answers
113 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
37 views

How to change email address used for registrations?

I'd like to have a different email address that the one used for the website administrator to send registration emails and email notifications. Say for instance I installed WP using admin@example.com ...
1
vote
1answer
234 views

What's wrong with Customizing new user notification email by add_filter?

When a new user signs up, the confirmation email is received and this is what it says: Username: testuser To set your password, visit the following address: But I want to customize it, so I added ...
1
vote
1answer
19 views

Sending emptys emails every day, How stop it?

I have a page with a page template that receives data through the post method (data is processed in a payment gateway and the response is sent to wordpress) this data is processed in the template, ...
1
vote
1answer
264 views

woocommerce fail to replace template string in email title [closed]

I am using Woocommerce and try to customize the emails. In the email title I've tried to use {customer_first_name} and {customer_name} with no luck. They do not get replaced. Is this a bug or are the ...
1
vote
1answer
56 views

wordpress do not let user registered with info@ email and other reserved emails to get registered by users

Does wordpress do not let user registered with info@ email and other reserved emails to get registered by users? how to fix this...? when ever user are trying to register with info@something.tld ...
1
vote
1answer
1k views

Woocommerce: Prevent sending of email when order is “Completed”

How can I prevent an email being sent when the order is marked as Completed?
1
vote
1answer
116 views

How can I pass get_the_author_meta('user_email') through the REST API?

In my plugin if I hard code an email address in my function with either wp_mail() or mail() I can get my form to work: function email_form($ip_address, $agent, $referrer, $email, $name, $message) { ...
1
vote
1answer
64 views

When admin changes a password for a registered user, I don't want to send a password change email to users

I need to change/generate passwords for the registered users, but should not send an email to them regarding this. Admin will tell the password to them later. these members are registered on the old ...
1
vote
1answer
497 views

Emails marked as spam because it's contain via box4231.bluehost.com

Any notification emails sent automatic is marked as spam and it's because contain via box4231.bluehost.com, Bluehost support tells me that this problem from wordpress. How can solve ?
1
vote
1answer
2k views

woocommerce_email_attachments filter arguments [closed]

I’m trying to generate PDF attachment for new order emails in WooCommerce and this is what I found: add_filter('woocommerce_email_attachments', 'attach_terms_conditions_pdf_to_email'); function ...
1
vote
1answer
76 views

How to change the text of automatic E-Mails e.g. after changing your password? (German localization)

How can I change the text of E-Mails that are sent automatically after creating an account/changing your password etc.? I am using Wordpress in german. So far I found the de_DE.mo and de_DE.po files ...
1
vote
1answer
531 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 ...
1
vote
1answer
60 views

Receive each week the number of posts published

I'm trying to create an email alert every monday at midnight that will send the number of posts published the past week on the site. I created 2 variables: $post_published_to_date which is the total ...
1
vote
1answer
419 views

Send mail to user only once when specific check box is selected and updated from profile meta updated by admin

Here i have created one checkbox in admin of the wordpress and when i check and update it send mail to user it works but its sends mail every time when any part of profile is updated.Is there a way to ...