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
votes
1answer
425 views

Turkish Character Problem on mailing

I am using Woocommerce plugin for my e-commerce site. For mailing I've installed Postman SMTP. I could not handle with Turkish characters on ongoing e-mails. Such characters "Şşğ..." on mail body I ...
-1
votes
1answer
5k views

Add shipping address to Woocommerce order emails [closed]

After upgrading my Woocommerce to 2.6.6 - new order emails only show billing address and not shipping address. Can I manually add shipping address to my emails? The code I have is do_action( '...
0
votes
1answer
29 views

Create an email address that forwards to users in role

I am looking for a method that, functionally, creates a group "reflector" or forwarding email address, for all the users in a custom role. For example, if I create the custom role "OompaLoompas", I ...
0
votes
1answer
290 views

Woocommerce custom field on emails outputs 'Array'

I'm trying to add a custom email field in Woocommerce. Code to add the pickup date field to checkout: // ---------------------------------------------------------------------------- // Pickup Date ...
0
votes
0answers
281 views

Asynchronous emailing

Whenever a user performs an action involving sending out email notifications, it takes a long time to process and therefore the user must wait a few seconds until the resulting page is loaded. As a ...
3
votes
3answers
6k views

Email as Username in registration

many users would to allow the registration in a wp site without an username, just only with an email. This is a core problem, so the solution (a trick) is to replace username with email. If wp ...
0
votes
1answer
324 views

Send email for pending post

I've found this code that worked perfectly for notifying admin when a post is updated, but it's annoying the admin because she's getting emails for all updates and she only wants notifications for ...
1
vote
1answer
4k views

Attaching a pdf to Contact Form 7 e-mail via functions.php [closed]

I'm trying to attach pdf files to an e-mail manually and I did some research on the topic and found this code: add_action('wpcf7_before_send_mail','send_pdf'); function send_pdf( $cf7 ) { $id = ...
2
votes
1answer
100 views

Send PDF link in email based on radio button selection

I am using custom email and form in my wordpress site. Thing is in form there are 2 radio buttons : English Chinese Other fields are normal. I have 2 PDF uploaded to server for both above ...
0
votes
2answers
834 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
2answers
39 views

Getting image in mail

I need to get a post thumbnail to show up in an email, but this doesnt work with just mailto: as i've tried it. <a href="mailto:?subject=Anbefalt innlegg - <?php the_title(); ?>&body=Hei,...
1
vote
0answers
395 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 ...
-4
votes
2answers
679 views

WooCommerce - How to add a custom field to only a specific email template [closed]

What I am trying to do I am adding a custom field to a WooCommerce email template, however I am trying to make the custom field only appear in one custom email template instead of all of them however ...
2
votes
1answer
377 views

WooCommerce: display text instead of raw checkbox value email

I have successfully setup some custom fields on checkout and it all works fine. I have a checkbox as one of the fields, my_gift_wrap_checkbox, and I managed to write code to display text in the ...
1
vote
3answers
3k views

PHP mail() works but wp_mail() does not

I'm totally lost by the mail function in WordPress (WP 4.6 multisites). I tested locally (on my localhost) WordPress send mail. This works fine at first sight (I don't really know why because I've ...
0
votes
1answer
135 views

Send contact form to a specific referrer-email adres

My objective is to have a form that can be send to different email adresses, depending on the referrer. For example: If someone would share this link: www.example.com/form/referrer1 The form should ...
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 ...
0
votes
1answer
1k views

How to get Post title by locale with Qtranslate-X

I need to send 2 emails, when new comment is posted and when new comment is approved. Site is multilingual and uses qtranslate-x plugin. Here is code, which sends email when comment is posted. In ...
0
votes
1answer
238 views

Send email messages after comment was submitted

I need to send 2 email messages: if comment was submitted and when comment was approved. Without any plugin of course. How can I do this?
3
votes
2answers
949 views

Mail will not send in HTML

Okay, I've got the following issue. I'm trying to send a mail in HTML format. I made a class that returns an HTML string, and that works great. When I pass that html-mail as $message in my function, ...
-3
votes
1answer
803 views

Welcome Email Going to Spam

The user sign up welcome email is going directly to spam, Gmail says this email may not have been sent by ****@gmail.com Would setting up a domain specific email address and changing the site owner ...
0
votes
1answer
731 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:...
0
votes
1answer
194 views

WordPress stops executing code after the require() method

I'm trying to set up SMTP for my custom contact form. I have placed the latest PHPMailer folder in my theme folder. I created a page template for Contact Form and added the code for the contact ...
1
vote
1answer
519 views

Is it possible to change an existing post status from 'pending' to 'publish' via email?

I am building a website which uses a custom form plugin, and the plugin gives me the ability to create posts (pending or published) using the data from the form. Upon submission of the form, I want a ...
-3
votes
1answer
41 views

how can i inform other users about new user registration? [closed]

I try to inform other users about new user registration in wordpress but I did not succeed. please help me I use ultimate member and user pro plugin.
1
vote
1answer
76 views

Email 'from address' has a www in it

When sending emails from my WordPress install, my 'from address' includes a www. Currently, it's sending email from web@www.domain.com when what I want is web@domain.com. However, if I change the ...
1
vote
1answer
2k views

How do I call wp_mail from HTML?

This is meant to be up in the next week or so, but I am having a lot of trouble getting the site to send emails to an address specified in an input box. I need to use wp_mail as I need to be able to ...
4
votes
2answers
4k views

Login email after registration never sent or received

On my site, after a user registers they receive an email with an activation link. When clicking the activation link, sometimes the page doesn't load, sometimes it does (usually if I click the link ...
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....
0
votes
1answer
663 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
1answer
93 views

WordPress get_the_content losing formatting when emailed

I'm pulling the content of a post outside of the loop to send in an email like so: $content = get_the_content(); However, when I craft the body of the email: $body = 'Hello: <br/><br/>...
0
votes
1answer
99 views

Mailing list sign up form without plugin

Would anybody be so kind and guide me through how to create an email sign up form for WordPress which does the following: Visitors enter email address, it validates it and inserts into the database ...
3
votes
4answers
7k 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 ...
0
votes
1answer
859 views

Wordpress Registration Email by Role

I'm wanting to send out a custom html email to a new user based on their role during registration. So, I have 2 roles that will be specifically registering on the site: photographer and subscriber and ...
0
votes
1answer
229 views

Wp_mail doesnt work

I created a form for mail sending, but it does not work. Email function is enabled in php. if (!$error_msg) { $to = "mail@to.send"; $headers[] = 'Content-Type: text/html; charset=UTF-8'; $...
0
votes
1answer
110 views

Add custom shortcodes to the Welcome Mail

I need to add a custom shortcode to the welcome email of my website. I'm not expert; what I need is in plugabble.php file? I tried a lot of plugins for edit email template but nothing seems work. ...
0
votes
1answer
990 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
325 views

how to disable the e-mail verification on wp-admin/options-general.php multisite admin e-mail

I have a multsite that has a bunch of blank e-mail addresses in the admin e-mail address feilds, and I just want to update them without the e-mails being verified. Background is that I am a web ...
-1
votes
1answer
2k views

How to override email text New Customer Order?

Im trying to override the admin email template text "New customer order" to "New order" in function.php, but i can not finde any info on google. Can somebody please give me a hint! :)
0
votes
1answer
605 views

Send e-mail from admin area to adresses in custom field

My client wants to be able to send an e-mail from the Page Editing Screen to a number of e-mail addresses. Every page has a custom field called email_addresses that takes comma seperated addresses: ...
8
votes
3answers
3k views

How to add headers to outgoing email?

I want to add an additional header to outgoing emails on my sites, so I can easily determine which site sent a given email. (I put a standard functionality plugin on all of my sites, so this is easy ...
0
votes
1answer
643 views

Contact forms not sending mails

I used two plugins, contact form7 and pirate form, both display the message of succes but nothing coming in my inbox. Alsto tried the SMTP with google and hotmail but i recive a message that someone ...
-1
votes
1answer
296 views

Woo-Commerce new order email no style attached

This one is baffling me, but when a new order is created the email is sent to the customer and a new order email is created but none of the order details are being sent see image: I've gone through ...
0
votes
1answer
3k views

How to send confirmation email after payment made via paypal?

I am developing Blog website and i have used the custom paypal button, but now i want to send confirmation email after payment made via paypal. I had searched for IPN's API but don't know how to ...
0
votes
1answer
4k views

Send email via ajax

I have send email funciton on my home.php wordpress file and function is below $("#sendmailbtn").click(function(e) { var dataString = $(".pricing").html(); e.preventDefault(); var ...
1
vote
1answer
447 views

Not able to send links in email after setting header

I am not able send links in email. I am using wp_mail() function to send email. When i set header $headers .= "Content-Type: text/html; \r\n"; this header removes href attribute in received email. i ...
2
votes
1answer
4k views

Editing Header Titles of each details in woocommerce Order Email [closed]

I'm using flatsome theme, woocommerce plugin. On my thank you page I get the bank details, order details and customer details etc. but on customer order email, header TITLES of those details are ...
0
votes
1answer
116 views

Prevent function from triggering again when post in specific category gets another category?

I have created a function to send out an email to authors when there post is added in the popular category for custom post type. IT WORKS but there is 1 major issue. If the post that is in the ...
0
votes
3answers
3k views

Need to manually add multiple WP users with same e-mail address (with good reason)

For starters, I'm aware of the concerns generally brought up by many when someone looks for a way to skip duplicate e-mail checks for creating new user accounts. However, In my case, I believe the ...
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) ...