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.

180 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
155 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
49 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
26 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
551 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
579 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
53 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 ...
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
392 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
28 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
59 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
311 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
62 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
374 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
153 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
474 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
367 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
405 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
77 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
331 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
180 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
108 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
385 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
402 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
6 views

Claim Listing functionality - how to send email to users when their claim has been approved or denied

We have a claim listing plugin, it allows items(posts) to be claimed by users. It requires the user to "register" in order to claim that item therefore they have to enter a username and their email. ...
0
votes
0answers
10 views

only receiving welcome email… no others

i just took over a site for a client who is using Mailgun plugin to send emails from things like contact form notifications. The first thing I did was create an account for myself and received the ...
0
votes
0answers
15 views

Old content revision: send email notification to author on the 'Review Date'

I'm trying to find a way to configure email reminders for authors to manually review content. Here are my requirements: All pages, posts and CPTs should have the 'Review Date' field. It will probably ...
0
votes
0answers
12 views

Email verification at a later date?

By default Wordpress has a email verification during registration which I plan to override. I want the users to try out the website before sharing their personal email ids. Is it possible to do an ...
0
votes
0answers
33 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', '...
0
votes
0answers
15 views

WP AJAX and email

I am creating a subscribe-plugin and wanting to make data through an AJAX. here is a JS code: <script> jQuery(document).ready(function($) { $( 'button.subscribe' ).click(function() {...
0
votes
0answers
7 views

User to be able to upload images x2 and email them

I need to allow a user to upload two image files on the front end on my website. I need these images to them be emailed to an email address I choose. Is this possible?
0
votes
0answers
36 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
34 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 ...