Questions tagged [html-email]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

how to customize wordpress email templates without plugin

How can I customize all emails sent by WordPress by default in HTML format without using the plugin? Emails such as password reset, new registration, registration or confirmation of comments, etc. Or ...
0
votes
0answers
235 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 ...
1
vote
0answers
24 views

Unable to send custom welcome email after user register

I am trying to send a custom welcome email after user register on our website. The default role set is 'subscriber'. The email should pull some user meta values and display the same in the email. I ...
0
votes
1answer
19 views

How to add (and change the font of) the short product description to order page and customer's new order e-mail [closed]

I'd like to add the short product description to the e-mail that is sent to the customer when a new order is confirmed. I've added the following via a code snippets plug-in: add_filter( '...
0
votes
0answers
12 views

Need help modifying the New Order Received email in Woocommerce

I've looked around, and not been able to find the info I need. I want to change the default email layout significantly Using help from a nice infographic on tyche softwares website (link) I have ...
0
votes
0answers
112 views

Attach base64 images in my html template not working

I am trying to send base64 encoded images in my HTML template but in my email images are broken. Can anyone help me out? email-template.php file <?php // Echo base64 encoded sample image ...
0
votes
1answer
99 views

Insert Current URL into MailTo link in wordpress

I'm trying to figure out a simple way to "grab current URL" and use mailto link such as: <a href="mailto:email.com?subject=Booking%20Request%20%value%&body=Hello%20Daisy%2C%0A%0AI'm%...
1
vote
0answers
84 views

How to set wp_editor to be email friendly?

I am sending emails via wp_mail() using a text/html header. So i need html formatted content. I want to use wp_editor() to edit my custom email template options. It has a Visual and Text tab for ...
0
votes
0answers
31 views

How to encode correclty an url with the char “&” for an email?

In a plugin I need to send an email to confirm a member registration. Inside this email HTML Content, there is a link with two parameters like this : site_url() . "/user-profile/?activate=true&...
1
vote
0answers
895 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
3answers
2k views

Set content type to HTML for lost password email only

Is there a way to change the content type for only the password reset email? I have a custom HTML template for it, and have set wp_mail_content_type to text/html and am applying the template with a ...
1
vote
1answer
852 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 ...
1
vote
3answers
3k views

wp_mail not sending

So I have a localhost WordPress server, and the function wp_mail workd perfectly and sends. When I put the exact same file in an actual WordPress website as a theme, it only shows me a blank screen, ...
-1
votes
1answer
620 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 ...
0
votes
2answers
42 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,...
4
votes
2answers
1k 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
5k views

Send an email that contains a HTML and plain text part

I am sending emails from my wordpress using SMTP Postman plugin. I have created a function in my functions.php file that creates a HTML registration email as per the below: /* Custom user ...
1
vote
1answer
537 views

WP mail sent to MS Exchange recipients = occasional email corruption?

My office processes many email receipts from WordPress-based forms (primarily using the Formidable Pro plugin). Starting in the last 6 months, one out of every ~15 emails sent from WP will come ...
0
votes
1answer
1k views

daily job to run send email based on user data

Quick setup/info: A user can login to my site and is presented with a form to complete. The form contains a Category drop down, and then 5 possible text fields with a Task Name and a Completion Date ...
-1
votes
1answer
1k views

What is the correct way to send multipart email in wordpress?

I haven't seen an example sending email containing both html and plain text using wp_mail function.
0
votes
2answers
1k views

Generate Email Newsletter HTML from Posts published within a Date Range?

I would like to basically send a newsletter type email to a listy I have using a 3rd party such as MailChimp. My goal though is to be able to find or build a WordPress plugin that will allow me to ...
5
votes
2answers
2k views

Using WordPress templating for HTML emails

I am working on a plugin that needs to send out an email after a form submission. I am using wp_mail() for this and it works fine. My problem is that in my code the HTML is generated by a bunch of ...
4
votes
2answers
30k views

how to set from address according to the form input email address for wp_mail()?

I am trying to create form and send it to my e-mail address using wp_mail. my wp_mail() code is: if($_POST["submit"]) { $to="my email"; $subject ="My subject"; $sender=$_POST["...
0
votes
1answer
3k views

PHP form is not sending mail if I use mime type and version in header. How to solve this? [closed]

If I use the following code, then the form works fine and I am getting form submissions to my email. <?php if($_POST["submit"]) { $recipient="meemail@gmail.com"; $subject="New request"; ...
0
votes
1answer
814 views

How To Style Links in Content Area With <span> Tag Automatically?

This is like a suicide mission for me. I have to avoid CSS because I want to build a website that will help me to create HTML templates for email campaigns. Email readers can't read CSS, so CSS is ...
0
votes
1answer
1k 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.' }}', $...
0
votes
1answer
198 views

MailPress plugin: table inline style tag removed when sending the newsletter

I have coded my own MailPress theme for my newsletter using tables and inline styling for good look and feel of my newsletter. I have in the files header.php and footer.php html table code with inline ...
0
votes
1answer
5k views

wp_mail strips out the link url from the anchor tag in mail content

When the email content contains a link with url like: mobileappname://accesstoken#w34rdgtsrt5v6m, <a href="mobileappname://accesstoken#w34rdgtsrt5v6m">Click</a> wp_mail function removing ...
3
votes
3answers
23k views

Include HTML template file in wp_mail

I'm using wp_mail() to send an HTML email. But there's quite a lot of HTML code in the email, so rather than including all the code in my wp_mail() function, is it possible to have the code in a ...
0
votes
1answer
242 views

Not able to override pluggable function with a mu_plugin

I'm trying to modify the email that's sent to users when they are invited to join my multisite network. Understanding I can only use the pluggable function, how do I override the default email with a ...
4
votes
3answers
14k views

Create custom welcome email without a plugin

Is there a way to customize the email content and subject for the welcome and verification emails sent during the registration process for Wordpress? I'd like to hook or filter in without using a ...
0
votes
2answers
8k views

Is it possible to send blog posts via email to subscribers?

Would like to be able to send the blog post in an email mail to my subscribers, this would be great if it can be achieved through a plugin.
0
votes
1answer
4k views

Images in wp_mail not showing

I created a plugin that sends an email: $subject = 'New comment - '.$post_title; ob_start(); include(SUBSCRIBE_USER_BASE_DIR . '/email/message.php'); $message = ob_get_clean(); ...
1
vote
1answer
62 views

Does anyone know a plugin that turns a 'post' into an html newsletter?

I know you could just grab the code or some such. But I'm trying to figure out a way to easily implement this for a client. All my googling has just turned up signup forms, not anything for actually ...
0
votes
1answer
590 views

Programming Wordpress to send a custom-built form to specified email address

I have built a custom html/javascript form that I would like to incorporate into my blog. I would like the submit button of the form to send the information to a specific email address. Is there a way ...
60
votes
5answers
105k views

Is there a way to send HTML formatted emails with WordPress' wp_mail() function?

Is there an action_hook or something similar that could help me achieve this? I tried adding markup in a PHP string variable and just fired off an email with the wp_mail() function like so: $...
0
votes
2answers
608 views

Send batch of posts as HTML Email?

Looking for a little help getting to grips with a quote, part of which is producing quarterly reports consisting on all the posts from that quarter. My question is two fold - Is there a plugin that ...