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
195 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 ...
0
votes
0answers
15 views

Changing default WPMU emails to be send thorugh Campaign Monitor Transactional emails

I am trying to use CM transactional emails to work with wordpress default emails on WPMU installation. So far I've found the required hooks to do this, but i have a few questions. add_action('init', ...
0
votes
0answers
8 views

Different email for the user registered via checkout Page

The new user account function is same for the woocommerce if you can register new user at the time of checkout or via my account page, i want to send separate emails for the users who register via ...
0
votes
0answers
112 views

Woocommerce html emails are just broken - it automatically adds many “=” characters spread randomly within the code

after many hours of trying to fix this mysterious issue I decided to reach out for help. Thanks to everyone willing to aid me. When I send HTML emails from Woocommerce, those emails are received ...
1
vote
1answer
215 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. <...
0
votes
1answer
2k views

How can I modify the default reset (lost) password email text?

I found some similar questions on here, but was unable to apply the solutions that were provided. The standard password reset email that Wordpress is sending does not provide a clickable url for ...
0
votes
1answer
25 views

Contact Form 7 How to Alter the From email address?

In the past we were able to put a user email address in the From field. But now we get the message: " this email address does not belong to the same domain as". I know you should use ie. noreply@...
0
votes
1answer
382 views

wp_mail not sending attachment

My mail function is as follows add_action('wp_ajax_order_processing', 'order_processing'); function order_processing(){ include 'mail-translations.php'; require_once( ABSPATH . 'wp-admin/includes/...
0
votes
1answer
21 views

Send email to author of the post when the custom post status changes to published

I have this answer in reference : https://wordpress.stackexchange.com/a/100657/145078 It sends to all users. I want to notify the author of the post only when author's custom post type gets ...
0
votes
2answers
27 views

Do_shortcode before send email content

I'm having a little problem figuring out how to execute shortcodes stored in a mail content option of a plugin. The thing is, I have a field in my options page named '_message' that works with ...
0
votes
3answers
386 views

Get user custom field value on function.php

I created a function in function.php which send an email with user information at registration. I succeed to get the ID but I can't get custom fields... I only can get these ones : - ID - ...
0
votes
0answers
21 views

tag based subscription

I have different tags based on products, I want that when new post published then only attached tag's subscribed people will get mail. If this is possible with category then I am fine with changed my ...
0
votes
0answers
20 views

Wordpress e-mail address replaced with 'e-mail protected'

I recently moved a WordPress site to a different domain. I had a page discussing e-mail addresses and security with a bunch of made-up addresses as an example. These have been replaced with the text [...
-1
votes
2answers
43 views

Adding multiple emails to a

I inherited a WordPress site that has a lot of custom coding that appears to be Bootstrap. A contact form is coded in a PHP file and the client would like to add a couple more email addresses for ...
0
votes
2answers
14 views

Use WordPress Site For Email List Functionality

I'm working on a WordPress site for my condo association. I would like to have two email aliases: residents@mycondoplace.net board@mycondoplace.net that alias to all residents, and the board ...
0
votes
1answer
28 views

Adding time of order to Admin email for new order

I have set plain text for new orders from woocommerce shop, they are getting printed, fine. But it is important to know the time when the user placed the order. The time is not mentioned on the ...
1
vote
0answers
356 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 ...
0
votes
1answer
402 views

Add custom order meta to Order Completed email

On my order complete page I can do echo get_post_meta( $order->get_id(), 'wpcf-purchase-student', true ); What would the equivalent be in the customer-order-completed.php email template?
0
votes
1answer
57 views

Send mail to author when custom post type is saved

I have a custom post type called "documents". I can add documents (ACF repeater field) there and the users can see them in a frontend-view. Now i need to send an email-notification to the author of ...
0
votes
1answer
304 views

How to change the Customer new account email

I would like to change the "Customer new account" email. In this line: ' . esc_html( $user_login ) . '' ); ?> I would like to change the parameter %2$s, instead of showing the username I would like ...
0
votes
0answers
16 views

Email New Posts to Subscribers

I'm looking for a solution that allows me to notify users of new posts via an email newsletter. I want the email to include the post excerpt, headline, link to full post, and image. I've looked at ...
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 ...
0
votes
1answer
31 views

Do action for only switch status for publish_post

I am creating notification e-mail for approved post. It sends mail to author like 'your post approved'. So i am using publish_post filder. function notificationApprove( $ID, $post ) { // Send ...
0
votes
0answers
38 views

Add another email to a customer to recieve procesed order woocommerce

I need your help to create a field that I put another email from a customer. I need that customer to receive the order and with the other email receive the same order. I tried this code: ...
1
vote
1answer
882 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 ...
0
votes
1answer
2k views

Send WooCommerce New Account Email After User Verification

I'm using WC Email Verification (by XL Plugins) to add verification to WooCommerce user registration (making the user click a link in an email to verify their account before they can use it). My ...
0
votes
0answers
112 views

An error occurred while attempting to export personal data. Unable to generate export file. ZipArchive not available

I am trying to test the export personal data feature on my Wordpress website. I am already able to send the confirmatory mail and get the confirmation. But as soon as I press "Email Data", I get the ...
0
votes
1answer
205 views

Sent comments notifications to multiple users

I am new to wordpress I want to send email notifications for commenting in blogs. Currently it is going to only one user. I tried 'comment notifier' plugin but got negative result. I tried the below ...
1
vote
1answer
18 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
2answers
312 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
0answers
49 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 ...
0
votes
0answers
414 views

admin-ajax.php returning 0

I'm currently working on a WordPress contact form, which is created as a plugin. I need the form after submit to send an email without reloading the page. When it reloads everything is ok. The problem ...
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
60 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 ...
0
votes
0answers
23 views

Send email to users when they get new followers

I'm using a simple plugin "user following system" And all what i need to do is sending an email after the users get a new followers. I think this is the important part of the plugin code: function ...
0
votes
1answer
320 views

Multisite - SMTP not working on other network sites

I have WP Mail SMTP plugin setup on multisite, the email is sent from the parent site successfully, however, when trying the same or another email from the child site gives me following error: ...
0
votes
1answer
21 views

Simple filter to change label name of Email Adress to something else

i searched the whole internet without finding an adequate answer: I simply want to change the label of the Email Adress from "Email-Adress:" to "Example" i think this can be done by a simple ...
0
votes
1answer
3k views

How to set up User email verification after Signup?

You know how all these websites send out links to their new users for them to verify their Email address? I'm trying to set up something like this but after some research I still haven't found a good ...
2
votes
1answer
73 views

How to setup SMTP for only one specific wp_mail()

I just want to setup SMTP for a specific instance of wp_mail(). I have tested plugins like "Easy WP SMTP" and also checked how to set up SMTP manually but all these apply to the entire site and then ...
0
votes
1answer
40 views

Sending HTML email containing custom fields to site users from WordPress

I am looking to send out emails to users in my WordPress site/system. I want to have emails that say something like: You have X credits remaining to fulfill Y. Your deadline is Z. X,Y,Z would be ...
2
votes
2answers
2k views

Customize wp_new_user_notification_email()

I am trying to customize the notification email sent to user that contains the link to set password. Currently, I have set up a custom user registration and login forms at the urls site.com/register ...
1
vote
1answer
1k views

How to validate website field in contact form 7?

Is there any way to validate website field entered is right or wrong through Contact form 7? Please help me.
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 ...
0
votes
1answer
32 views

Where is the account email address located?

Short story: I need to change the email address for a WordPress account hosted on a cPanel server I manage. The owner has forgotten their password and her reset requests are coming to me. Long story:...
0
votes
1answer
31 views

Send Mail with link to current_user

I need a plugin which should send an mail to the "current_user" after a click on a "send" button. The reason for this that I have some pdf.files which should not be downloadable directly. There is a ...
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: ...
0
votes
1answer
78 views

Prevent sending emails on user creation in OOP context?

I need to block any user creation email on the site, and I tried overriding any pluggable function that is responsible for mail sending. The only thing that works is $this->loader->add_filter( '...
0
votes
1answer
395 views

wp_mail() not sending emails with ajax

I am using wp_mail() to send email using ajax. My mail code is as follow. add_action( 'wp_ajax_send_confirmation_email', 'wpse_sendmail' ); add_action( 'wp_ajax_nopriv_send_confirmation_email', '...
1
vote
1answer
244 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 ...