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
1answer
1k 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","xyz@gmail.com"); ini_set("sendmail_path","xyz@gmail....
0
votes
0answers
6 views

Sending email to users from frontend

I'm looking for a code example or a simple plugin to add a reply button to users' posts, that will activate a simple send message dialog. The message is to be sent to the user's email. What I am using ...
5
votes
2answers
17k views

“Reply-to Address” Email

I searched the web for last couple of days for "Reply-to Address" in the email but had no luck so, here I am. In my wordpress site, there are multiple store owners who can sell their ...
0
votes
1answer
1k views

Pass return-path additional parameter in wp_mail

Our server is currently automatically setting the return path as {serverusername@serverhostname.tld}. When sending an email in PHP, I can override this by doing the following: $return = '<bounce@...
8
votes
3answers
24k views

get_user_meta() doesn't include user email?

I simply wonder why <?php var_dump(get_user_meta(4)); ?> doesn't contain an email address of the user. Instead I have to use get_userdata(4)->user_email; to query the email of the user. ...
0
votes
0answers
15 views

Can WordPress resend failed emails?

It seems that the SMTP service I configured for sending emails fails intermitently and I haven't been able to debug it. I have been able to identify when the sending process fails using Mail Log ...
0
votes
1answer
606 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 ...
0
votes
0answers
5 views

I want to schedule email (date, time is in database->table) wp_schedule_event() not working

I want to schedule email (date, time is in database->table) wp_schedule_event() not working, I want to send emails to clients on future different dates and times from database, I am developing ...
1
vote
1answer
36 views

Can I mass change all admin emails for a multisite instance?

I am managing a multi-site instance of Wp with 300 sites and so I am trying to see if this can be done automatically. I know individually I can go to each site and change the admin email value in the ...
0
votes
0answers
22 views

Email subject mb_encode_mimeheader() broken after 5.5.1 [closed]

can someone tell me why for Chinese language the subject of the email I receive is =?UTF-8?Q?=E3=83=B4=E3=82=A3=E3=83=B3=E3=83=86=E3= $subject = mb_encode_mimeheader($subject, 'UTF-8', 'Q'); the same ...
1
vote
1answer
1k 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
2answers
10 views

Activation email to change admin address not being sent to Gsuite email account

I changed my admin email in the WordPress dashboard I'm using to create a website and it's just not sending out the email to confirm changes. The domain is hosted through BlueHost and the domain email ...
1
vote
3answers
3k views

How to get current post ID in Contact Form 7 wpcf7_before_send_mail hook action

I'm trying to handle the CF7 data before send and update the current post custom field using ACF function but I'm unable to get the current post ID the form is send from. I've also tried getting the ...
0
votes
2answers
757 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', '...
0
votes
2answers
2k 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-...
5
votes
5answers
10k views

How to change email notification for comments

How do you change the user that gets the notification email announcement for new comments and comment moderation? WordPress sends the notices to the admin user. My client is the editor of the site. I ...
6
votes
7answers
6k views

prevent users from changing their email address

does anybody know how to hook or filter the user-edit.php file so that an user's email address is disabled from editing akin to how the username is disabled ..??.. i can edit the core file (gasp) and ...
0
votes
0answers
19 views

mailchimp integration on a custom footer

I want the user to be able to opt-in to a MailChimp newsletter within a custom footer, which one. of our clients has asked for. The client also uses MailChimp so we therefore cannot use anything like ...
-1
votes
0answers
25 views

Changing email sender name from Wordpress to my site

Hello everyone i have used the following code in my theme's function.php file to achieve my desired results but i don't receive an email when i submit the form where should i be wrong? function ...
1
vote
2answers
911 views

How to retrieve the sender email with wp_mail()?

I Have this simple following code : <?php //if "email" variable is filled out, send email if (isset($_POST['email'])) { //Email information $to = get_option( 'admin_email' ); $headers ...
0
votes
1answer
621 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
2answers
1k 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 ) { $...
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 ? <?...
39
votes
8answers
21k views

Sending multipart (text/html) emails via wp_mail() will likely get your domain banned

Summary Because of a bug in WP Core, sending multipart emails (html/text) with wp_mail() (to reduce chance of emails ending up in spam folders) will ironically result with your domain being blocked ...
1
vote
1answer
767 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 ...
0
votes
1answer
31 views

Send clear password via mail

I need to send an email whenever a user is added or registers containing its clear password. I know it's a bad idea in terms of security but I need to do it for a private project. Any idea? Should I ...
0
votes
2answers
51 views

How can I change the email that is inside the default email texts of wordpress?

Wordpress sends some various default email texts to the users. For example when the password reset email has been sent, then the user gets an automatic email like this: Hello user, This notification ...
0
votes
1answer
517 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
1answer
777 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
0answers
53 views

display item price before quantity (not item total) in woocommerce customer emails

I am new to woocommerce and php. I want a product display price of 1 unit to show on woocommerce emails. Right now There is Product name, Quantity, And Price tab. Price is not actual amount it is ...
0
votes
1answer
18 views

Send email with Content-Type text/plain

I have problem with emails in Wordpress. I have to send message with Content-Type is text/plain, but in Wordpress default Content-Type is text/html. That change chars like & to &amp;. How can ...
1
vote
1answer
843 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
0answers
19 views

Sudden email notifications for new users and password changes

I suddenly started getting new user email notifications and password change emails this past weekend. I have never received them before and it looks like the users and password changes are legit so I ...
1
vote
1answer
39 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, ...
0
votes
1answer
22 views

Remove wpautop from retrieve_password_message

I have been struggling to remove the wpautop filter from the retrieve_password_message function. I created a new email message and want to keep my <br>s instead of having automatic paragraphs ...
0
votes
1answer
572 views

How to stop WordPress from sending mails?

I got a big problem with my wordpress instance. I have a directory plugin (sabai) and since this morning wordpress is sending a lot mails to my customers. Since now I don´t know how to fix it, so I ...
0
votes
2answers
3k 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
1answer
672 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
16 views

How to use mobile number as username in WooCommerce?

I need to use a mobile number as a username, enter a password, and create an account in WooCommerce. Is there any possibility for doing this?
0
votes
1answer
15 views

Change email address change notice from WordPress

I need to change the default text of the email which is sent when i change a subscribers email. The text: Hi XYZ, This notice confirms that your email address on CHL Club Hub was changed to example@...
0
votes
2answers
781 views

Send email to author of post on post submission

I am using WordPress directory theme. I want to send an email to the author of the post whenever he publishes a new post. Currently, email is just sent to the administrator only. I didn't find any ...
2
votes
0answers
22 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 ...
0
votes
1answer
33 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
0answers
18 views

Use [from-email] from the contact form as sender's email

Is there any way we can use from email as senders email (e.g. [from-email]) which he enters in the form field? I'm currently using contact form 7 and looks like it won't support it at the moment. Is ...
0
votes
0answers
33 views

WordPress won't let me change my administration email address

I'm trying to set my domain name email (something like username@mywebiste.com) to be the one that my website users can send messages to when they click on "send messages" on my website. I ...
0
votes
1answer
1k 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 ...
0
votes
1answer
73 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
1answer
1k views

Send email daily using `wp_mail`

I want to send email daily 12:54pm using wp_mail function, but it send mail continuously. Plz suggest what is wrong? <?php $timeg = date( 'g:ia', current_time( 'timestamp', 0 )); $timem = '12:...
2
votes
3answers
3k views

Preventing WooCommerce email sending only on particular conditions

By importing orders from Amazon in WooCommerce and creating WooCommerce orders programmatically, emails for new order or order status changing are sent. Is it possible to prevent this email sending ...
0
votes
0answers
8 views

Add email notification in my custom payment plugin for woocommerce

Hi how can I add email notification in my custom payment plugin for woocommerce? I just want simple notification emai send to admin & customer eveytime new order created like just "You have an ...

1
2 3 4 5
14