Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [html-email]

The tag has no usage guidance.

0
votes
0answers
103 views

Woocommerce html emails are just broken - it automatically adds many “=” characters spread randomly within the code

after many hours of trying to fix this mysterious issue I decided to reach out for help. Thanks to everyone willing to aid me. When I send HTML emails from Woocommerce, those emails are received ...
0
votes
0answers
21 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
285 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
958 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 ...
0
votes
1answer
410 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
3answers
988 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
418 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
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,...
3
votes
2answers
923 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
3k 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 ...
0
votes
1answer
477 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
890 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
986 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
938 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
1k 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
21k 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
2k 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
536 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
945 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
186 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
4k 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 ...
2
votes
3answers
15k 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
204 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
12k 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
3k 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
589 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 ...
37
votes
3answers
69k 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: $email_to =...
0
votes
2answers
599 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 ...