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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
3k views

Custom Welcome Email | WordPress

I want to replace the following message when creating a user in the dashboard as an administrator: Username: xxx To set your password, visit the following address: https://development.xxx.com/wp-...
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 ...
0 votes
1 answer
2k views

How to send email with wp_mail() with from email taken from contact form instead of the host?

I have set up SMTL like this, add_action( "phpmailer_init", "send_smtp_email" ); function send_smtp_email( $phpmailer ) { ini_set("sendmail_from","[email protected]"); ini_set("sendmail_path","xyz@gmail....
0 votes
2 answers
2k views

Get value from an input field and pass into update_meta_data as $meta_value

I am building a woocommerce site and I have some input fields the on the product page. one is for recipient email (its for a gift car). Everything works, and the recipient email is saved on the order, ...
0 votes
2 answers
1k 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
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 ...
0 votes
1 answer
1k views

Woocommerce checkout page - custom field checkbox value into email

I've added a checkbox to the checkout page: add_action('woocommerce_after_order_notes', 'client_already_field'); function client_already_field( $checkout ) { echo '<div id="client-already-...
2 votes
3 answers
7k views

How to receive an email with Wordpress?

I would like to receive datas from an external client to a Wordpress website. Example: I send an email to someone and I would like to send a copy (to archive it) to the website/smtp server. Is there ...
0 votes
1 answer
28 views

Send and receive emails with wp_mail() for WP User (like Mailserver)

I have developed an app, which is connected to my WordPress Backend. I would like to provide my User (WP User) an email function to send and receive mails without using a dedicated email account (...
0 votes
1 answer
784 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
1 answer
2k views

Would like to use hook or filters to customize email templates

I hired a contractor to help me with my site a few years ago when I didn't have the coding experience that I do today. The contractor ended up making new templates for almost every email, and they are ...
0 votes
1 answer
32 views

Send emails to individual subscribers when CPT post is deleted (trashed)

The context On my site I have a custom post type (project) where visitors can subscribe to a post and get various notifications via email. My site is hosted locally right now and I am using Mailhog ...
0 votes
1 answer
838 views

Duplicate notifications for new user registration

I am trying to figure out why new user registrations are receiving duplicate notification emails. They arrive at the exact same time but from different addresses, one is from the admin owner (myself) ...
0 votes
1 answer
1k views

Wordpress does not send email confirmation to newly registered users

This issue came to my notice when i saw new users trying to reset their password, when I asked them why they're doing this, they told me no email was sent to them after registering on site. My ...
0 votes
0 answers
9 views

I can't insert more than one image when creating a custom email

If I only put one image in the html, it looks correct but when I put the second one in this case recyclingimg.png everything breaks function creacionQR($url, $emailDestinatario, $empresa, $nombre, $...
0 votes
1 answer
3k 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
0 answers
17 views

Disable Email Register form

Disable Email Register form account. I want my customers to sign up with an account and password but without email Wordpress allow this ?
0 votes
1 answer
2k views

wp_mail send multiple emails in a loop

I'm very confused with wp_mail(). Here my code. function email_notification_for_admin_and_customer( $order_data ) { $subject_email = 'Subject LOREM IPSUM'; $customer_email = 'Hi Customer, ...
0 votes
1 answer
792 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
1 answer
753 views

How to change lost password email text using custom plugin wordpress?

In wordpress, i want to add one extra parameter(ABC) in lost password link with key (lost password email text). I have added many hooks. add_action( 'password_reset', 'password_reset_hook', 10, 2 ); ...
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, ...
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 ...
1 vote
2 answers
2k views

Changing the Default New User Notification Email

I've been trying to edit the automatic email sent by WordPress to users when they register for my site. Currently, they register on a form made by the plugin called Forminator. However, the WordPress ...
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 ...
0 votes
3 answers
2k views

WordPress doesn't send SMTP email even by phpmailer hook

I used this code in my child theme(child theme functions.php): add_action( 'phpmailer_init', 'wpse8170_phpmailer_init',0 ); function wpse8170_phpmailer_init( PHPMailer $phpmailer ) { $...
0 votes
1 answer
1k views

Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge

So I am using jQuery and pHp together to send an email to myself whenever a user clicks on the update button of their Ultimate Member form. However, the email only sends when a user is using Chrome, ...
0 votes
1 answer
1k views

how to add custom reviews button in woocommerce order complete generated mail

this is possible in woocommerce order complete generated mail...? i m Adding a review button in order complete generated mail for review about product ..it means after checkout process then send to ...
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 ...
0 votes
1 answer
60 views

Email notification when registred user clicks a link/visits page

Wordpress- I need to get an email which signed up user visited/clicked on link/button/or visited specific page. Email needs to tell me at least their username, or something from sign up form from User ...
1 vote
1 answer
2k views

wp_new_user_notifications to notify user and admin about new user registration

I am using wp_insert_user to insert new users and before inserting the user it checks whether the user exists or not and only the new user are registered. Now I want to notify both users and admins ...
0 votes
0 answers
8 views

What setting can I change as my email forms don't work with some phones or ESIMs?

I have tried lots of different things but can't get email working from subdomains. If I use something like CF7 the little wheel just keeps spinning for some people in Japan using ESIMs or VPNs from ...
0 votes
0 answers
12 views

Autoresponder emails go to Spam - Junk folder

we are facing the problem that almost all the Autoresponder Emails we are sending from Nex Form by basixonline are delivered into the Spam or Junk folders of the recipients (yahoo, gmail, and others). ...
0 votes
0 answers
18 views

Condionally/limited emails from system (cantact-form, registration, passwd reset)With

With: add_filter( 'wp_mail_from', 'my_mail_from' ); function my_mail_from( $email ) { return "[email protected]"; } add_filter( 'wp_mail_from_name', 'my_mail_from_name' ); function ...
0 votes
1 answer
33 views

UsesWP plugin prevent blocks notification mail for a new user

On a fresh-brand-new-blank wp, I've installed "UsersWP plugin" and it works well. But it sounds like as soon as the plugin is activated, the mail to the admin for notifying him a new user is ...
0 votes
1 answer
70 views

How to implement my product variations/attributes in my contact form 7 email?

I'm working on a website that is using woocommerce and yith to add product variations. When the customers wants to buy something, he will have to choose between some product attributes, like the size, ...
0 votes
0 answers
46 views

How to make Contact Form 7 work when injected via AJAX in WordPress?

I am working on a WordPress project where I need to use Contact Form 7 as part of an AJAX response to check if certain data is available. However, I am facing an issue where the form is not working as ...
0 votes
0 answers
31 views

Customising WP user activation email

I'm trying to customise the default 'new user activation' email, but none of the hooks/filters semm to apply to that specific email. To be clear it's the one that looks like: To activate your user, ...
0 votes
0 answers
33 views

set up User email verification after Signup in wordpress theme

I want to set up User email verification after Signup on my site www.availabler.com in wordpress theme. tried multiple methods but no luck. Please assist.
0 votes
1 answer
25 views

How to edit the new user email notification template

Hello :) I am hoping someone can help me resolve my issue or guide me in the right direction to resolve it. On my WordPress website, I would like to know how to edit the new user email template that I ...
0 votes
0 answers
112 views

Send summary email from a form with wp_mail

I'm trying to send two emails (one to the site manager and one to the user) with the data entered in a contact form made by me and placed in a wordpress template, but this doesn't work. i am using ...
3 votes
1 answer
143 views

Filter "wp_mail" - How to distinguish between a WordPress system email and a plugin email?

Using the wp_mail filter I add a "Reply-To" to the header with my email address, so clients can reply directly to the email to contact me if there's any issues. I only want this on WordPress ...
1 vote
1 answer
408 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 ...
0 votes
1 answer
29 views

How do I set WordPress to send 2 different emails based on criteria in the database when someone submits a form?

I'm trying to create a small program registration system that allows users to register for a course AFTER carrying out an Advisory session with a lecturer. The database will contain a table with the ...
1 vote
1 answer
738 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
1 answer
37 views

Resending woo-commerce order emails from frontend

I am trying to create a simple shortcode [resend_woo_emails]. This shortcode will create a form with a dropdown with all email classes, an input field for cc emails, and another input field for ...
0 votes
1 answer
399 views

SMTP email does not work even with the right firewall rules

I am using Mailer Send as my SMTP service and the Fluent SMTP plugin. But it does not matter the plugin with every SMTP plugin I get this error. When I try to send emails, I always get this error: { ...
0 votes
2 answers
5k views

User Registration - no Email required

We are looking to modify the registration so that no email is required (yes we know this will be an issue). We are using the Registration Plus Redux plugin since it has options we are using currently. ...
0 votes
0 answers
44 views

How to setup a form for Majordomo list subscription

I am currently in the process of setting up a simple website for a small community. One of the requests is to have a mailing list that is easy to sign up for on the website. The hosting provider ...
1 vote
1 answer
654 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 ...
0 votes
2 answers
541 views

wp_mail attachment not working in wordpress

wp_mail attachment not working, when the form is filled with an attachment the email is sent but with no attachment received. in wp_mail documentation they said t should add something like that: $...

1
2 3 4 5
16