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.

174 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
153 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 ...
2
votes
0answers
47 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 ...
2
votes
0answers
23 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 ...
2
votes
0answers
521 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 ...
2
votes
2answers
556 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 ...
1
vote
0answers
21 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....
1
vote
0answers
20 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 ...
1
vote
0answers
357 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 ...
1
vote
0answers
26 views

User invite email not delivered - related to subdomain?

I have a problem where, on a new install of WordPress, I want to add a new user, but the user is not receiving the email with the confirmation link. I've done some research and understand that this ...
1
vote
0answers
50 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 ...
1
vote
0answers
11 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? ...
1
vote
0answers
301 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 ...
1
vote
0answers
61 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 ...
1
vote
0answers
345 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 ...
1
vote
0answers
151 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: ...
1
vote
1answer
440 views

Woocommerce HTML email option unavailable

I am attempting to create HTML emails in woocommerce. I currently only have the plain text email option available. I have added the following to functions.php on my theme: function ...
1
vote
0answers
25 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 ...
1
vote
1answer
338 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 ...
1
vote
0answers
395 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 ...
1
vote
0answers
188 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) ...
1
vote
1answer
38 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 ...
1
vote
1answer
57 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 ...
1
vote
0answers
79 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 ...
1
vote
0answers
49 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?
1
vote
0answers
76 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 ...
1
vote
1answer
40 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 ...
1
vote
0answers
325 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(){...
1
vote
1answer
30 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 ...
1
vote
2answers
2k views

Mail function is not working

My mail function is not working. When I submit form it says mail sent. But not receiving. I tried echo if the mail sent. It is also working. What is the issue here? Anything with mail function ? <?...
1
vote
0answers
172 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 me@domain.com email address. But by the time it hits /var/log/mail.log, ...
1
vote
0answers
105 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 ...
1
vote
1answer
382 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 ...
1
vote
0answers
292 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 ...
1
vote
0answers
401 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 ...
1
vote
1answer
106 views

Wordpress front-end post form and email after

I have coded a front-end form that posts to a custom post type, i have a form input field for an email and when the form posts to the custom post type i want an email sent to the email address ...
1
vote
0answers
1k views

Emails not getting delivered to Hotmail addresses

Recently Hotmail users are unable to receive their password email when they register or use the "Forgot my password" link to get a reset link emailed to them. So far this is only a problem for hotmail....
1
vote
2answers
230 views

How to set up a simple email subscription?

I am working on a new Wordpress site, and I want to have a placeholder "under construction" page while I'm setting it up that has a link to subscribe to an email service. The subscription service ...
1
vote
1answer
152 views

PAGE Specific Email Notifications

Is there a plugin, or a way that I can set a PAGE that has comments enabled to send an email notification to my subscribers? I don't want to enable email notification for all my pages that allow ...
1
vote
2answers
203 views

Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )

I have updated my permalink structure to /archive/%post_id%, but if someone uses a URL like /archive/456857 instead of the full URL of /blog-test, WordPress shows the post without giving a 301 to the ...
1
vote
1answer
1k views

Send bulk emails without timeout

I am developing a plugin that sends emails out to users. I am having difficulty in finding the most performance enhanced way to send these emails out and prevent a server timeout. In other words, I ...
0
votes
0answers
33 views

In phpmailer_init the argument 'to' is null

I'm trying to hook into phpmailer_init. I'm using this code: function bp_emails($result, $to, $cc, $bcc, $subject, $body) { $email_to = $to; $email_body = $body; $email_subject = $subject;...
0
votes
1answer
28 views

Forgot password flow does not work, getting email with a link but after clicking link it's not working

Forgot password does not work, getting an email with a link but after clicking the link it's asking to fill email in again instead of being able to fill in a new password. I am using the WooCommerce ...
0
votes
0answers
18 views

How to setup custom email on wordpress

My Wordpress website is hosted on Google Cloud Platform. I want to create a custom email to send email from Wordpress/Contact form. I have create a custom email with Zoho but it does not allow to send ...
0
votes
0answers
12 views

restore cart content on cancelled order

i need help restoring a cart content after order status is switched to cancelled. So the email that woocommerce sends contains cart content and some additional information, but however if the user ...
0
votes
0answers
13 views

Lead capture offering download via WordPress + Amazon SES

Is it possible to integrate WordPress with Amazon SES this way? I want to collect lead e-mails by providing items to download (e-books, podcasts and other stuff). The flow is: user leaves his mail,...
0
votes
1answer
25 views

Custom user registration fields in user_register hook

I am trying to send an email to administrator with user_register action hook and wp_mail() function when a new user registers. I created some custom registration fields and I want send them via e-mail,...
0
votes
0answers
15 views

Textarea output from options page is different other custom textarea / ACF / Timber Twig / Email Encoder

I have a job archive where a summary of every job is listed. Underneath every single short-description I need the same text-block - containing an email address and a postal address. To make it easier ...
0
votes
0answers
31 views

Custom Email based on User Role at Registration

I need to create a custom registration email for different roles that a user signs up to. Here's what I've done so far, a lot if it are copied as I'm still learning: /* * Plugin Name: Custom ...
0
votes
1answer
30 views

New user notification issue

I'm having an issue with our business' website. Every new user that registers on our site will never get an email confirmation which has the randomly generated password. As for us, the admins, we do ...
0
votes
0answers
10 views

WooCommerce : Create email for custom status, appear in backoffice

I need to create an email which would be sent to customer when switching to a custom status. Does anyone know a good and updated tutorial to do this? Thank you :)