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.

232 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
924 views

Contact Form 7 - Delay auto responds

I'm looking for a way to delay the auto response (mail_2) from Contact Form 7 for 2 days. But I have no clue how to tackle it. I hope you have an idea. I'm using the following code in functions.php ...
Flint's user avatar
  • 43
3 votes
1 answer
396 views

Action hooks returning old category instead of new category

With some help I created a WP Action to send an email to the author of a post (custom post type) when the category has been changed. This works ok, except that the function is returning the previous ...
danzo's user avatar
  • 163
2 votes
0 answers
36 views

Storing Email Account Passwords for SMTP Mailing for a WordPress Plugin

I am currently converting a client booking system I created into a WordPress plugin. It uses the PHPMailer library to send emails. I am using SMTP security to send the emails and thus need the email ...
Lucas Johnson's user avatar
2 votes
0 answers
460 views

action-scheduler vs wp-background-processing

I am trying to create a user registration form that sends OTP over Email and SMS and display an OTP screen after the whole process completes. How can I make the send_mail and send_sms to be in the ...
SkyRar's user avatar
  • 202
2 votes
0 answers
316 views

Email notification after registration in Wordpress

I would like the site's administrator doesn't receive a new user's registration email when the administrator himself uses the admin interface to add a user. How can I limit sending a email only when ...
user10533272's user avatar
2 votes
0 answers
2k views

Trigger Woocommerce New User Email

I wrote a custom plugin that handles login and registration for my WordPress Woocommerce site. When a user registers via my custom form handler I would like to trigger Woocommerce to send the new ...
Joshua Wieczorek's user avatar
2 votes
2 answers
2k views

Processing a subscription form with POST method?

I am trying to integrate a ‘subscribe to newsletter’ feature on my wordpress blog Users just need to enter their name and email address, hit subscribe. This is then supposed to send me an email and I ...
Chris's user avatar
  • 21
1 vote
1 answer
439 views

password reset link not being sent

I have wordpress 6.3. when I click the "Send password reset" link in the users menu, no email is sent. All other emails are sent, including when the user resets their own password from the ...
noone392's user avatar
  • 111
1 vote
0 answers
63 views

How do you ensure that a user is recognised and available for use only when it is verified through a row in the database called 'accountVerified'?

<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); global $wpdb; if($_POST){ $username = $wpdb->escape($_POST[...
Sheran Malik's user avatar
1 vote
0 answers
209 views

Wp_new_user_notification doesn't work

I have tried unsuccessfully to replace the email template for user & password. I will explain what I have done based on the documentation and what I have seen here in this forum: I have created my ...
Marlo Muñoz's user avatar
1 vote
0 answers
189 views

Translate emails into the language of the user

The following scenario: An admin activates a function or similar for a user (in the WordPress frontend). Now the user should be informed about this by email. Therefore an AJAX call is sent to the ...
Farley's user avatar
  • 11
1 vote
1 answer
212 views

Capture User Email Address When Filling Out Form

We have a snippet of code that was provided by an optimization platform company we use that provides a real-time personalization to our website. The user will fill out a form (Gravity Forms) and then ...
Webman's user avatar
  • 63
1 vote
1 answer
1k views

How to add a user custom field into Woocommerce emails?

How do you add a user custom field into Woocommerce emails? This is my code so far in functions.php add_filter( 'woocommerce_email_order_meta_fields', 'custom_woocommerce_email_order_meta_fields', 10, ...
Stanley Tan's user avatar
1 vote
1 answer
661 views

WordPress won't let me change my administration email address

I'm trying to set my domain name email (something like [email protected]) to be the one that my website users can send messages to when they click on "send messages" on my website. I ...
wellppies's user avatar
1 vote
0 answers
21 views

Get sent emails without email logs

Is there a way to get the emails sent by my website even without email log?
Jomar Bruto's user avatar
1 vote
0 answers
1k views

Wordpress reset password email is not working - woocommerce and checkmail does work

I have a bit of an odd issue on our Wordpress site that is currently under development on a subdomain of our primary domain. It is a basic Wordpress with Woocommerce and a couple other plugins for ...
Jelmer's user avatar
  • 111
1 vote
0 answers
56 views

How to send an automated email to the customers when product is added woocommerce

I want to send email to the subscribers or customers when the new product is added to my woo commerce store The email must have its price and any custom offer I have tried mailpoet plugin it allows ...
Khurram Ansari's user avatar
1 vote
0 answers
701 views

Get subscribers via REST API and send post notification

I use this code below to send email after post send to draft. But after this I need also send emails for subscribers. I have tried to use newsletter plugin to get subscribers via REST API. But is ...
Shark's user avatar
  • 21
1 vote
1 answer
682 views

Change Password Confirmed Email Text

I've been struggling to find a hook I can use to edit the text in the password confirmed email that gets sent out when you've changed your password in WordPress. Is there anyway to do this with a ...
Demonix's user avatar
  • 51
1 vote
0 answers
73 views

get_post_meta returning no value in custom post type alert email

I am working on a function that will alert a user via email when a custom post type (glossary_post) has been created on the frontend of my site. It is working well except I need to get the value of a ...
jessica mele's user avatar
1 vote
1 answer
632 views

How to set custom from email address in wp

I want to set a custom from email address for emails that are sent via a plugin. I don't want to change default email address. The following code is not working: add_filter('wp_mail_from', '...
Pranav Patel's user avatar
1 vote
0 answers
28 views

Display encrypted content on my website

Good day I am new here and to wordpress as well, please can someone tell me how i can automatically hide email addresses displayed on the front page(dynamic Content), see example https://quickleads....
Thadeus Manjera's user avatar
1 vote
0 answers
52 views

Multisite not using subdomains as hostname in from address when sending emails

I have a Multisite installation where I'm facing somekind of bug relating the hostname used when WordPress sends emails (I've test it with WordPress admin emails and Contact Form 7). For example, if ...
Camilo's user avatar
  • 41
1 vote
0 answers
1k views

WooCommerce order complete email logic

Can someone helps me to understand the logic of WooCommerce for sending email on a completed order? If I'm not wrong, the mail is send when the order is marked complete, but I'm not able to find the ...
Moooartin's user avatar
1 vote
0 answers
231 views

Make WordPress use timezone for email Date header

My WordPress installations send emails with the Date header specified in UTC: Date: Wed, 18 Jul 2018 15:18:50 +0000 I would prefer that the mail be sent with dates encoded in localtime, which is ...
adrusi's user avatar
  • 111
1 vote
0 answers
19 views

wp-comment author- url +, email filter hook

Don't know how to change '@' and 'HTTP/S' in ALL comment-stuff, so those will be displayed in WP as unclickable contents. Do you have the knowledge and patience to straighten the following lines? ...
tellfranky's user avatar
1 vote
0 answers
2k views

Sending HTML emails via wp_mail not working properly

Task to accomplish: 1) A user types information in a form 2) Via ajax (method: POST) the form gets posted to wordpress 3) Wordpress takes the form 4) Wordpress creates an HTML-email which contains ...
QuickSort's user avatar
  • 161
1 vote
0 answers
153 views

How to send mail from Wordpress if one server hosts page and another email?

The website VPS has the domain name name.com and the mail server mail.name.com. I successfully send and receive mail using mail.name.com using postfix and dovecot. However, when I try to register a ...
Akitirija's user avatar
  • 111
1 vote
0 answers
2k views

Send multiple attachments with wp_mail in PHP

I'm trying to send multiple attachments with wp_mail() , after some issues of attachments names (it displayed something like phprTxfd.pdf instead of file_name.pdf), i succeeded to display the name of ...
Tweak's user avatar
  • 31
1 vote
0 answers
216 views

User registration email and let user choose pasword

I found many examples where the user registration e-mail had the link with the self-generated password. Basically I would like to customize (add more text) on default user notification, link here: ...
novecentonove's user avatar
1 vote
1 answer
1k views

Filter wp_mail based on content type

I can current filter the content type of the wp_mail function: add_filter( 'wp_mail_content_type', function( $content_type ) { return 'text/html'; }); And I can filter the message content ...
Kevin Robinson's user avatar
1 vote
1 answer
1k views

woocommerce email template detect email recipient

in woocommerce email template is it possible to detect email recipient example if email recipient is admin or email [email protected] or if recipient is customer tried if is_admin if is shop ...
Lolak's user avatar
  • 111
1 vote
0 answers
35 views

Reply By Email to comment notifications

This might be a somewhat broad question, but I'll try to keep it as specific as possible. I need to implement two specific pieces of functionality on my WordPress site: Allow users to subscribe to ...
Henry Wilkes's user avatar
1 vote
1 answer
2k views

Adding extra email address who receives email like admin - woocommerce

Is there any way to add a new email address along with admin email who receives same email as the admin.like : on placing an order admin receives 'NEW ORDER RECEIVED' but customers receives 'THANKS ...
Muaz Hesam Musa's user avatar
1 vote
0 answers
839 views

wp_mail() headers multipart/alternative

I am trying to send email via wp_mail() containing both plain text, as well as HTML body. When I am setting up headers like this: $headers = "MIME-Version: 1.0 \r\n"; //$headers .= "From: Dawid ...
Dawid Adach's user avatar
1 vote
1 answer
2k views

wp_mail() not sending email in multisite subdomain

I have a multisite enabled WordPress configuration. My main domain is like http://www.example.com, with several subdomains like http://test1.example.com, http://test2.example.com, and so on. I have ...
mpsbhat's user avatar
  • 297
1 vote
0 answers
305 views

Adding the_content() in custom template email

Let my explain the scenario first: I have a very custom page template. That is use in combination with a CPT and a few Custom fields. The CPT is called "werklijsten" (it's in dutch so bare with me) ...
RichyVN's user avatar
  • 46
1 vote
1 answer
56 views

How can the recipients and content for comment email notifications on a custom post type be changed?

I am building a ticket system and would like to use the comment threads as the discussion for the ticket. There are three users involved in each ticket: The client. The support operator. The support ...
Teo Maragakis's user avatar
1 vote
1 answer
72 views

2 Email addresses for each user

Is there a way to let a user who registers an account in WP add 2 email addresses that will be associated with that account? The reason for the required function: We have a website that sells online ...
user1588's user avatar
1 vote
0 answers
103 views

Query to get number of posts last week

I want to receive each monday the number of posts that were posted on my site during the week. The first part of the code retrieves the number of posts, and the second part sends me an email with the ...
Graham Slick's user avatar
1 vote
0 answers
50 views

How to change the default mail when admin approuved an user?

How to change the email (content & template) when the administrator approuved an user?
mirado's user avatar
  • 41
1 vote
0 answers
161 views

Send email when a portfolio project is updated

I am trying to automatically inform specific registered users when the content of a project in the portfolio changes. It's like automatic newsletters on blog changes but I need it for a portfolio and ...
telandor's user avatar
  • 111
1 vote
1 answer
82 views

Stop the execution of foreach loop which extract data from array?

In detail the condition is There are multiple new users to whom admin want to send welcome message but only once for each member. I have done sending message but if the member refresh his email page ...
clap's user avatar
  • 39
1 vote
0 answers
440 views

wp_mail 200 response but no mail sent

I'm trying to send email from WP using ajax to validate the form and wp_mail to send the mail. The form is a basic form with id names on the fields The js validtion looks like this $(function(){...
user51442's user avatar
1 vote
1 answer
36 views

Emailing passwords: Setup installed on home server using XAMPP

I've just delved into the WP world and all in all it's going quite well. I have a server at home that I'm using to host the sites. All is working fine except the password emails are not being sent ...
null's user avatar
  • 151
1 vote
0 answers
355 views

wp_mail_from is ignored

I'm setting the specific "from" address using wp_mail_from. I've verified that it's actually called and I'm passing a legit [email protected] email address. But by the time it hits /var/log/mail.log, ...
Dev Null's user avatar
  • 136
1 vote
0 answers
145 views

comment reply by email

Is it possible that the admin replies to a comment by email, replying to the notification message he receives about the comment? And for a whatever user if the subscribe to comments plugin is ...
Toc's user avatar
  • 227
1 vote
1 answer
494 views

Email notification of new posts that match query

I'm creating a real estate site that will have a search functionality (beds, baths, price range, neighborhood, etc). When presented with the search page, the URL will have a nice long query string to ...
Nick's user avatar
  • 11
1 vote
0 answers
300 views

How to notify specific users when i'm posting/modifying a new post

Here's what I'm trying to do... I'm trying to send new submissions only to contractors requested. Using Role Scoper, I can select only users who can access the new submission. However, I am looking ...
Rulio Jones's user avatar
1 vote
0 answers
425 views

Google Apps SMTP for WP MultiSite?

How can you force WordPress MultiSite to send all emails via a Google Apps SMTP server? I have attempted to use Easy WP SMPTP, however that does not work exactly as I'd hoped, not to mention it fails ...
ylluminate's user avatar

1
2 3 4 5