Forums / General Questions / Newsletter won't send in HTML

Newsletter won't send in HTML

Locked

Views: 39,909

Results 61 to 77 of 77
This thread is locked. New replies are disabled.
27 Mar 2008, 6:42 PM
#61
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Newsletter won't send in HTML

You've put inappropriate content in your email_use_8bit.php file, namely stuff that should only be in functions_email.php

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Mar 2008, 8:23 PM
#62
redcinamn avatar

redcinamn

Zen Follower

Join Date:
Oct 2006
Posts:
175
Plugin Contributions:
0

Re: Newsletter won't send in HTML

HMM I followed these directions below from previous a post but altered nothing just uploaded via ftp, was I supposed to make changes to this file as well?

To sum up, and consolidate everything into 1 post -

To increase the chances of emails sent from admin as HTML actually arriving as HTML, particularly to webmail based email systems such as hotmail, yahoo mail, gmail etc.; and to allow test newsletters sent to the admin email address to arrive as HTML, do the following:

Copy /includes/extra_configures/email_use_8bit.php to /admin/includes/extra_configures, so that both folders have a copy of the file.
Replace /includes/functions/functions_email.php with the attached copy, which incorporates DrBytes' suggested changes.

Chuck
Attached File: functions_email.zip (8.4 KB, 354 views)

Red

27 Mar 2008, 9:51 PM
#63
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Newsletter won't send in HTML

Well, if you're getting the error message you mentioned:> Cannot redeclare zen_mail() (previously declared in /home/tyler/public_html/shop/includes/extra_configures/email_use_8bit.php ... then you uploaded code from functions_email.php as /includes/extra_configures/email_use_8bit.php

So, you'll need to undo whatever you did and try again.
Aren't you glad you make regular backups before you change files on your server?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 Jun 2008, 7:23 AM
#64
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Newsletter won't send in HTML

n8pbm:

My problem was that when I sent a newsletter to the admin it always arrived in plain text no matter what i tried. I fixed this issue by creating a customer with the same email address as the admin. Set the customer profile to HTML and now I can send HTML newsletters to the admin.

It appeared all the customers were getting the HTML newsletter when requested. It was just the admin that did not get it.

Seems strange that the settings has a spot to set the admin email option but it did not work. I am running 1.3.7 on Windows server.

Hope this helps. I searched the forum and did not find this solution.

This was exactly the fix I needed, all emails except the admin one came in html format, any way this could be made a sticky or added to the wiki page for emails? :)

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

5 Nov 2008, 11:35 AM
#65
zilla avatar

zilla

New Zenner

Join Date:
Feb 2006
Location:
Bexhill, UK
Posts:
45
Plugin Contributions:
0

Re: Newsletter won't send in HTML

just what i needed! worked first time, thanks for clear and helpful answer!

9 May 2009, 3:16 PM
#66
cylon avatar

cylon

New Zenner

Join Date:
Sep 2008
Location:
Vaasa, Finland
Posts:
18
Plugin Contributions:
0

Re: Newsletter won't send in HTML

Now I finally know how to send HTML e-mail, but I was surprised that the banner above which appeared with the e-mail that I´ve sent seems to be the orginal Zen Cart (The art of e-commerce) banner from the template, not my shop´s banner.

Does someone know what seems to be the problem why this original Zen Cart banner appears instead of the one which I use in my shop?

Thank you :blush:

9 May 2009, 3:50 PM
#67
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Newsletter won't send in HTML

Perhaps you haven't changed the "banner" (header) graphic to be your own? /email/header.jpg

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 May 2009, 4:04 PM
#68
cylon avatar

cylon

New Zenner

Join Date:
Sep 2008
Location:
Vaasa, Finland
Posts:
18
Plugin Contributions:
0

Re: Newsletter won't send in HTML

Thank you for the very quick reply, I appreciate it. If I understand you correct, I must also change the banner (replace it with my own) for email sendings eventhough I changed it already with my own as my default shop banner?

9 May 2009, 4:08 PM
#69
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Newsletter won't send in HTML

The HTML emails are built from an entirely separate template structure, located in the /email/ folder. You'll need to update any graphics in that folder to suit your website.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 May 2009, 4:11 PM
#70
cylon avatar

cylon

New Zenner

Join Date:
Sep 2008
Location:
Vaasa, Finland
Posts:
18
Plugin Contributions:
0

Re: Newsletter won't send in HTML

Thank you for your great support DrByte! :cool::cheers:

2 Jun 2009, 11:37 PM
#71
christinefred avatar

christinefred

New Zenner

Join Date:
May 2009
Posts:
67
Plugin Contributions:
0

Re: Newsletter won't send in HTML

I have replaced the header.jpg and have two test customer email accounts - one at bigpond.com and the other is a hotmail acccount. Both have enabled html.
My problem is that the hotmail account is getting only the alt logo and not my header. The other account is working well and has my logo displayed.
The hotmail account is currently receiving html newsletters, emails etc. with no problems - apart from My Own.
I tried the full url in my browser and get the header, so that is working.
I tried putting the full url into one of the emails instead of just header.jpg and that worked with the hotmail account receiving it with the logo.
However I don't think that this is ideal - to change all of these manually?
Please help - keeping in mind that I know very little.......

8 Dec 2009, 4:08 AM
#72
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: Newsletter won't send in HTML

DrByte:

Great. This alteration will find its way into a future release ...

I am using the latest version of zen cart, based on the thread i thought that it has been fixed. Anyone has this problem with V 1.3.8a?

Ok, mybad, i did not set Use MIME HTML When Sending Emails to true**.**

16 Nov 2010, 8:43 PM
#73
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Re: Newsletter won't send in HTML

Chuckl:

To sum up, and consolidate everything into 1 post -

To increase the chances of emails sent from admin as HTML actually arriving as HTML, particularly to webmail based email systems such as hotmail, yahoo mail, gmail etc.; and to allow test newsletters sent to the admin email address to arrive as HTML, do the following:

Copy /includes/extra_configures/email_use_8bit.php to /admin/includes/extra_configures, so that both folders have a copy of the file.
Replace /includes/functions/functions_email.php with the attached copy, which incorporates DrBytes' suggested changes.

Chuck

Was this patch built into the latest zencart 1.3.9 series?

13 Dec 2010, 3:23 PM
#74
jasbeanie avatar

jasbeanie

New Zenner

Join Date:
Aug 2005
Posts:
13
Plugin Contributions:
0

Re: Newsletter won't send in HTML

HI I NEED HELP!!
i am using 1.3.9h but i still cannot get the newsletter/email to send out in HTML.. even when i preview its still in plain text with the html codes eg: <br>...</br>

any idea what i shd do???

3 Jan 2011, 4:33 AM
#75
rweeks avatar

rweeks

New Zenner

Join Date:
Jul 2008
Location:
San Diego, CA
Posts:
45
Plugin Contributions:
0

Re: Newsletter won't send in HTML

Please Help, ready to send January Newsletter and same problem of email coming through in HTML code.
Also shows as code in "preview".
Current version 1.3.9g
Worked fine in October with 1.3.9f(?)

Old newsletters send and preview fine, so no issue with host, probably no issue with zen-cart email sending functions.
However, once a newsletter is "updated" from the edit screen, or a new newsletter is created and "saved", then they Preview and send as HTML code.
Is there something in the function that saves the file that is an issue????

Thanks

17 Jan 2011, 8:33 AM
#76
jasbeanie avatar

jasbeanie

New Zenner

Join Date:
Aug 2005
Posts:
13
Plugin Contributions:
0

Re: Newsletter won't send in HTML

can anyone help with this?? i am still unable to send out emails in html..
i am using 1.3.9h.

20 May 2011, 9:45 AM
#77
out2lunch avatar

out2lunch

New Zenner

Join Date:
Jul 2008
Posts:
64
Plugin Contributions:
0

Re: Newsletter won't send in HTML

jasbeanie:

can anyone help with this?? i am still unable to send out emails in html..
i am using 1.3.9h.

We had this problem and were scratching our heads on why it wasnt working... As some accounts got an html one and some of the admin accounts diddnt.

I found this option for debugging and now all our admin test emails come in HTML format...

[IMG]http://img198.imageshack.us/img198/1130/newsletteremail.th.jpg[/IMG]