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
0answers
7 views

Wordpress User Email & Password Plugin [on hold]

Is there any WordPress plugin that collects user email and password after registration or login?
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 [...
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
2answers
2k views

How can I change the email sender name from wordpress to (myblogname) on the “lost password” email?

When a user loses their password in WordPress, you are prompted to enter your email or username. When the password reset email has been sent, it displays "wordpress" as a sender name. I want my ...
0
votes
2answers
583 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 ...
1
vote
0answers
13 views

Looking for a way that will collect visitors emails before letting them view the blog posts [closed]

I am looking for a way that will collect visitors emails before letting them view the blog posts. What I want to do is let visitors browse the blog posts, view all categories and browse article ...
1
vote
1answer
30 views

How do I hide the purchase note in the WooCommerce 'order completed' email?

For every product in WooCommerce I can add a purchase note (screenshot). This purchase note is displayed on all subsequent emails to the customer. Via custom PHP, how can I hide the purchase note on ...
0
votes
1answer
27 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
1answer
15 views

Woocommerce Email attachments not working - file not being attached

I overrided Woocommerce admin-new-email.php with some custom meta, in addition, I have added a filter to add attachment file from an ACF options page file field. function attach_order_notice ( $...
0
votes
1answer
20 views

How to disable automated E-Mail on PHP error/exception?

Since WordPress 5.2 there is an automated E-Mail on PHP exceptions. In some smaller projects I just upload the files for new extensions while developing - whenever an error occurs then, the site admin ...
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
1answer
987 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
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
31 views

Send a different “thank you” email based on payment method

In wordpress/woocommerce config, we use the "COD" payment method to place an order, then our office staff manually sets a shipping quote, and sends a second email to the customer with their order, a ...
0
votes
1answer
1k views

difference between sanitize_email ,FILTER_VALIDATE_EMAIL and input email type in html5

what is the difference between using: HTML 5 <input type="mail"> (it validate user email input without any JavaScript or any other code. 2.PHP filter_var($email, FILTER_SANITIZE_EMAIL); ...
0
votes
1answer
55 views

WooCommerce: The model of e-mail is displaying only the html, not css

I'm using the version 3.4.7 of WooCommerce and configuring the e-mails, I stare with a strange thing: the templates didn't appear the css. I experienced this in all of my sites, this is a test site ...
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....
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
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 ...
9
votes
8answers
77k views

WordPress refuses to send mail, “…your host may have disabled the mail() function”

I recently implemented a comment area on my website and tried to get the email notification to work. It doesn't seem to want to send email notifications when new comments are made. Just to see if ...
0
votes
1answer
728 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:...
4
votes
1answer
9k views

Customizing the Subject Field in WordPress' Notification Emails?

Can I customize and edit the subject field in the "Password Reset" notification mails sent from our multisite blogs? I have tried some plugins like My brand login and white label CMS etc. But I can't ...
0
votes
1answer
2k views

Sending email for the custom form in WordPress

I am new to WordPress. I have created a custom template with a form. This form will get information like first name, last name, and message from visitors. I want to forward this visitor information to ...
6
votes
4answers
6k views

Missing URL in password reset email

From the wp admin login page I click to reset my password (not on the theme, on wp). I get the email but it contains no url to click. Plugins are disabled. What shoud I do?
0
votes
1answer
38 views

Send email when a user registers Rest api

currently using this plugin https://wordpress.org/plugins/wp-rest-user/ and there is a section where if you want to send a user an email when he/she registers (using wordpress as a headless CMS) ...
0
votes
1answer
420 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@domain.com or if recipient is customer tried if is_admin if is shop ...
0
votes
1answer
734 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....
2
votes
2answers
168 views

Sanitizing post content for use in an email

I'm sending the content of a custom post type in a plain text email (it's to send competition entries to a panel of judges), so I need to make sure that $post->post_content is correctly sanitized ...
0
votes
2answers
832 views

User email verification without a plugin, is it possible?

I have found a really great tutorial about creating a plugin that verifies email for new users: Email verification for new users Is there any possibility to do this directly with core editing and ...
0
votes
1answer
965 views

HTML email sent with wp_mail shows plain text

I have an HTML invoice that I want to send. I use the following function to replace some things in the HTML foreach($variables as $key => $value){ $template = str_replace('{{ '.$key.' }}', $...
4
votes
2answers
12k views

wp_mail script with jQuery post

I need to send an email from a page when a form is submitted. I thought I'd use jQuery post but I'm not really sure where to start. Would I use wp_mail()? And if so how could it be called? Sorry if ...
3
votes
1answer
6k views

Email sent from WordPress has HTML tags

Instead of: Hello, Thank you dfasdfasdfasdf asdf asdf asdfas dfs Please, feelasdf asdf asdf The email that arrives in my mailbox looks like the following: <p>Hello,</p> <p>&...
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
1answer
662 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
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
1k views

Should I use wp_mail or PHP's mail? [duplicate]

I have an email system that I am making in a WordPress plugin to send the emails with this code: include(PLUGIN_DIR.'config/class_phpmailer.php'); $email = new PHPMailer(); $email->From = ...
0
votes
0answers
614 views

Correctly configure SPF/DMARC record to work with WordPress

Backstory: I'm currently using WPEngine as my hosting provider, gsuite to host email and aweber for my email lists. Aweber advises me to create an spf record to reduce the potential for being seen as ...
1
vote
1answer
88 views

WordPress unable to send mail

I am unable to get email functioning in WP 4.8. I have WordPress running on a Bitnami LAMP stack. All modules/plugins/themes/languages are up to date. I have an SMTP host that is effectively an ...
2
votes
2answers
552 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
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
3answers
2k views

Sending all emails using SMTP

I tried using both Configure SMTP and WP Mail SMTP to send all domain emails through my donotreply Google Apps email address, but neither plugin worked. Attempting to send test emails through either ...
1
vote
1answer
54 views

Set a condition based on WooCommerce checkout city field while placing order

How to make condition on WooCommerce checkout field like when user select city "Indore" then on place order email goes to indore@gmail.com and when he select "Bhopal" city then email goes to bhopal@...
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 ...
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
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
12 views

Change the WordPress from address [duplicate]

I've taken over a site, and have found the from address for the emails (eg password reminders) are coming from the wrong address. How can I change the from address to the correct email? The ...
7
votes
3answers
5k views

Email user when password is reset by admin

I am really new to WordPress programming and I am not even sure if this feature exists. What I am trying to do is send an email to users (not admin) when an admin changes their password/email? At ...
0
votes
0answers
691 views

WordPress isn't sending welcome email with the password reset

So I have been debugging the code: $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n"; $message .= __('To set your password, visit the following address:') . "\r\n\r\n"; $...
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 ...