Questions tagged [html-email]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 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, $...
Miguel Angel Salas8's user avatar
1 vote
1 answer
887 views

Send retrieve password notification email with custom HTML email template

How to send custom HTML email for reset password? I know there will be a hook for that (retrieve_password_notification_email) But how to use it? Requesting for an example ...
e-lab innovations's user avatar
0 votes
0 answers
273 views

About Custom Email Template Design Responsive

I created a custom email function using wp_mail() function. I did everything which is required for mail template. This function is working well. But I need it to be responsive. I found that I can use ...
Arvind's user avatar
  • 1
0 votes
1 answer
181 views

WordPress new user email formatting issues

I have a WordPress site where i have Issue with the email, that user receives after creating an account. Email that a user receives, looks like this: https://tinyurl.com/y45bgy5z There is no ...
Optimum Creative's user avatar
0 votes
1 answer
409 views

Woocommerce Email show HTML source code [closed]

I updated my Woocommerce to version 5.6.0 but since that update the emails send by Woocommerce (invoice/order updates etc) will be send as HTML-source code despite it has to send a designed template. ...
Ricardio's user avatar
1 vote
0 answers
118 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 ...
kalyan's user avatar
  • 153
0 votes
1 answer
77 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( '...
Renier Davila's user avatar
0 votes
1 answer
412 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%...
Andre YPB's user avatar
1 vote
0 answers
155 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 ...
jonnyK's user avatar
  • 91
0 votes
0 answers
73 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&...
J.BizMai's user avatar
  • 850
1 vote
0 answers
2k 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 ...
QuickSort's user avatar
  • 161
2 votes
4 answers
5k 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 ...
jmock's user avatar
  • 23
2 votes
1 answer
1k 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 ...
codacopia's user avatar
  • 121
1 vote
3 answers
5k 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, ...
Francisco F.'s user avatar
-1 votes
1 answer
815 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 ...
meakcey's user avatar
  • 11
0 votes
2 answers
53 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,...
jrnd.bjrkhg's user avatar
4 votes
2 answers
2k 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, ...
Refilon's user avatar
  • 331
3 votes
1 answer
6k 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 ...
user3290060's user avatar
1 vote
1 answer
577 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 ...
samJL's user avatar
  • 125
0 votes
1 answer
2k 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 ...
Justin's user avatar
  • 3
-1 votes
1 answer
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.
Euphorbium's user avatar
0 votes
2 answers
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 ...
JasonDavis's user avatar
  • 1,670
5 votes
2 answers
5k 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 ...
Malibur's user avatar
  • 579
5 votes
2 answers
40k 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["...
Riffaz Starr's user avatar
0 votes
1 answer
4k 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="[email protected]"; $subject="New request"; ...
Riffaz Starr's user avatar
0 votes
1 answer
2k 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 ...
Danijel's user avatar
  • 13
0 votes
1 answer
2k 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.' }}', $...
MichaelAngelo's user avatar
0 votes
1 answer
210 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 ...
elvismdev's user avatar
  • 300
0 votes
1 answer
6k 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 ...
Subharanjan's user avatar
  • 1,579
4 votes
3 answers
33k 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 ...
Xav's user avatar
  • 399
0 votes
1 answer
282 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 ...
Jake Lisby's user avatar
4 votes
3 answers
17k 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 ...
Jake Lisby's user avatar
0 votes
2 answers
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.
zadubz's user avatar
  • 163
0 votes
1 answer
5k 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(); ...
AlxVallejo's user avatar
  • 1,441
1 vote
1 answer
70 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 ...
josh's user avatar
  • 454
0 votes
1 answer
595 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 ...
Jacque's user avatar
  • 11
74 votes
5 answers
146k 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: $...
racl101's user avatar
  • 1,555
0 votes
2 answers
615 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 ...
Mild Fuzz's user avatar
  • 4,180