Articles of html email

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 get all the new Posts that are within 2 date ranges…It will then allow […]

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, jeg fant et innlegg som jeg tror du vil like. <img src='<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>’>”> This only gives me the url, and […]

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 the url from the anchor tag and the link doesn’t work. When the url is appended with/having http://, the link works. Here is the code I am using. Any help or hint will be appriciated !! Thanks in advance […]

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

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”; $headers = ‘MIME-Version: 1.0’ . “\r\n”; $headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”; $sender=$_POST[“sendername”]; $senderEmail=$_POST[“senderEmail”]; $message=$_POST[“message”]; $name_title=$_POST[“name_title”]; $mailBody = “<b>Name:</b> $name_title $sender\n <b>Email:</b> $senderEmail\n\n <b>Message:</b> $message”; $mail_sent = mail($recipient, […]

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.

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 plugin or the “pluggable” feature. If someone could point me in the right direction, I’d be very appreciative. Thanks!

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 sending out a post. To summarise what I’m after: I want the client to be able […]

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 registration email */ function set_bp_message_content_type() { return ‘text/html’; } add_filter( ‘bp_core_signup_send_validation_email_message’, ‘custom_buddypress_activation_message’, 10, 3 ); function custom_buddypress_activation_message( $message, $user_id, $activate_url ) { […]

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[“sendername”]; $senderEmail=$_POST[“senderEmail”]; $message=$_POST[“message”]; $name_title=$_POST[“name_title”]; $mailBody = “<b><span style=’color: red;’>Name:</span></b> $name_title $sender\n<br/> <b>Email:</span></b> $senderEmail\n\n<br/><br/> <b>Message:</b> $message”; $mail_sent = wp_mail( $to, $subject, $mailBody ); } and for changing the from address […]

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 separate template and just include this template in the function? Here is what I […]