WP Better Emails Plugin - HTML Template issue - php

I'm having a problem with styling the email thru the HTML Template of the WP Better Emails Plugin.. I'm receiving the email alright but the style I placed under the Plain-text Template textarea is not working.. This is the code:
<html>
<body>
<p style="background-color: Gainsboro; color: DodgerBlue;">%content%</p>
</body>
</html>
It's a very simple code for now to test this feature. But it's not showing the background color and text color on my email..
EDIT:
I just found out that this plugin has this rule: HTML emails are not wrapped if they are already "text/html".
Unfortunately, I really need to have <ul> and <li> tags on my email without the style yet or else they'll look bad since there's no way for me to arrange or style those lists without these tags that I can target with css. How can I get away with this rule? Any idea?

Have you tried Contact Form 7. Its a contact form plugin for Wordpress and quite powerfull.
here is link:http://wordpress.org/plugins/contact-form-7/
Hope this help you. :)

Related

using PHP tags in href mailto:

I am working in a system that allows for custom system-generated emails to be sent to users.
The system has its own tags (such as [[EMP_NAME]] which outputs the employee's name).
I want to use one of these tags within the body of a <a href="mailto: " link.
However, the tags ( [[EMP_NAME]] ) have their own html tags embedded in them so when it is run, the result of the mailto link displays:
Best regards
<strong>John Smith</strong>
I have tried using <pre > but this just gets included in the mail as well.
I have also tried declaring $strname = <pre>[[EMP_NAME]]</pre> and then including $strname in the link body but with no success.
As this editor is embedded within the software, I'm not sure it's that advanced and I'm probably stretching it as it is - so simplest solution preferred.
Would much appreciate any help with this.
Thanks

How to embed a pdf in HTML and print that with cmd+p / ctrl+p

I am trying to include a pdf file in my HTML page and allow users to print that by using cmd+p or ctrl+p.
Here is my code -
<html>
<body>
<p> I want to print this page with pdf </p>
<iframe src="/my.pdf" width="800px" height="2100px" />
</body>
<html>
When I visit my page I am able to see the pdf file but when I try to print it shows me a blank page for pdf.
I am building this application with PHP. I have tried the embed and object tag also but had no luck with this.
Please help me to fix this.
Such functionality is not possible as explained here: Print Pdf from javascript embed tag
The only real thing you can do is try to convert the PDF to images and use the "#media print" tag to style the printing page appropiately.
It's a different matter
Record it for others.
If there are a lot of blank pages, the class you want to print out:
#media print{
.paper {
display:inline-block
}
}
Apply above CSS. My problem solve by this trick.

Wordpress shortcode adding <br/> and <p> in text

I'm trying to use a popup plugin for wordpress (https://wordpress.org/plugins/anything-popup/). Problem is, it's adding breaks to my text when I try to use the shortcode in the middle of a sentence.
See here: http://www.universaltheosophy.com/secret-doctrine-lexicon/
What should read:
"The Secret Doctrine Lexicon is a project set up by..."
ends up with a rogue paragraph break. Here's what I see in the source-code:
<p style="text-align: justify;"><i>The Secret Doctrine<br />
<style type="text/css">#AnythingPopup_BoxContainer2 ....
Now, I've tried disabling wpautop and it didn't make any difference. I'm not versed in php, so I have no idea how to edit the plugin itself if that's where the problem is. Anyone willing and able to help me out with this? (the plugin has virtually no support)

Email sent by Mandrill has wrong font color

I'm trying to modify the our email message for a forgot-password module.
I'm sending a html content to the json field html and here's the code
<html>
<head>
<title></title>
</head>
<body>
<p>Hello <?= $userName; ?>,</p>
<p>
Someone has requested a link to change your password, and you can do this through the link below.
</p>
<p>
Change my password
</p>
<p>
<?= $webUrl; ?>
</p>
<p>
If you didn't request this, please ignore this email. <br><br>
Your password won't change until you access the link above and create a new one.<br>
</p>
<p>
Best Regards, <br><br>
The Lifebit Team
</p>
</body>
</html>
After a I run the mandrill api, The color of the message is now purple (sometimes most lines are black). Here's the snapshot.
I didn't set any colors in my html code but why is it that some parts are purple? Thoughts?
Thanks ahead!
Sometimes the email client will manipulate the appearance of the email because it is quoted content, or appeared in a previous email.
I know for example, that Gmail will actually hide the content of a previous mail to show you only new content.
In the screen shot, my boss' signature is trimmed because it is not the first message from him in the thread.
Think about it this way, sometimes a browser will "paint" a link in a different color to indicate that it has already been visited (purple for the popular ones). There might be a similar mechanism in the mail client. If for example, you send the same email twice, the second one might appear different as it's content has already been viewed previously.
I assume that the formatting issue is something that is happening on the users email client. There is not much you can do about that other than explicitly defining colors and styles for each message that is sent.
it looks like CSS isn't being inlined for your Mandrill emails. Mandrill doesn't automatically inline CSS styles as MailChimp does, but you can optionally inline your CSS which should resolve the font styling issue you've noticed in Outlook. You can either set it by default for your account on the Sending Options page in your Mandrill account, or enable it on a per-message basis (using the inline_css parameter (API) or X-MC-InlineCSS (SMTP headers)). This will work for HTML under 256KB.

PHPlist Campaign HTML Broken comes with e>

I am testing phplist and tried to send campaign.
In start campaign, I added html code in compose message
It was broken especially these tags
<table> <div> <tr> <strike>
The test mail shows in the top "e>" and &nbsp, iv> r> and
some "text" as "t ext" and then all images normally. Some
<a href> on <img> are also not working.
After lot of trying I sent one blank message which also had e> printed in email body.
Can anyone help me pointing out where this header part is?
Why html is broken? Please help
Ok...
I added this in config.php and everything works fine
Thanks for the help friends...
define("HTMLEMAIL_ENCODING","8bit");
I believe it's related to your PHP version, login to your host cpanel and try a different PHP version. (I.E. from 5.2 to 5.3)

Categories