PHPlist Campaign HTML Broken comes with e> - php

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)

Related

Sending image and background image email with php

I am trying to send an email with one image sitting over the top of a background image, I can get it to work if I do this
$message .= "<tr><td background='https://path-to-background/image.jpg'><img src=https://path-to-image/" . $file. " ></td></tr>";
But the background image repeats
If I inline style it it doesnt work at all like this
$message .= "<tr><td><img src=https://path-to-dir/" . $file. " style='background-image: url('https://path-to-background/image.jpg'); background-repeat: no-repeat;'></td></tr>";
I know it may have something to do with " and ' but Ive tried everything and cant get the dam thing to work,
Any help as always is much appreciated
Thanks
Try moving the style property to the <td> tag.
Example:
$message .= "<tr><td background="path to background" style=\"background: url('path to background') no-repeat;\">Content</td></tr>";
Bear in mind that how emails are displayed on different devices will vary. I would recommend using a tool such as litmus to help with getting email templates where you need them.
Please post the entire code, as it may not be only the message body
thats causing problems.
Are you using php mail() or another library?
Did you set your header correctly to show HTML?
You might want to try your HTML code in the browser to make sure it works, before debugging the email (background image repeats sounds like a html/css error?).
Most Email programs do not show HTML correctly. Another argument for testing HTML first. You'll most likely need to inline css, there are a bunch of free tools if you google css inliner, that add the styles as inline.

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

Wiris math editor

I need help. I installed the Wiris math editor, but it does not work. Creating math works well, but the display does not work.
I know why, but I do not know how I repair it: I use free hosting which paste advertisement into the website's URL.
I want the URL to look like:
http://u12.hys.cz/tinymce/js/tinymce/plugins/tiny_mce_wiris/integration/showim‌​age.php?formula=3b1e36f0f64404ca46029248411a14da&cw=20&ch=13&cb=12&text=55
while my provider changes it to:
http://u12.hys.cz/%3Cdiv%20style=%22%20background-color:#; font-size: px;"><div class="trop"><strong>Magnetická </strong>kostka NeoCube na prodej</div></div>/tinymce/js/tinymce/plugins/tiny_mce_wiris/integration/showimage.php?formula=3b1e36f0f64404ca46029248411a14da&cw=20&ch=13&cb=12&text=55
Note that the provider added the following part
%3Cdiv%20style=%22%20background-color:#; font-size: px;"><div class="trop"><strong>Magnetická </strong>kostkaNeoCube na prodej</div></div>
Is there anything I can do?
This issue is not related to WIRIS plugin but to an advertisment your server provider is including in the image URL generated by our plugin. We are not sure when does your server provider modify the image link but we output the image link in //integration/createimage.php where you could probably remove the advertisment.

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.

WP Better Emails Plugin - HTML Template issue

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. :)

Categories