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

Newsletter won't send in HTML

Locked

Views: 39,909

Results 41 to 60 of 77
This thread is locked. New replies are disabled.
8 Sep 2007, 2:08 PM
#41
kiamyka avatar

kiamyka

New Zenner

Join Date:
May 2007
Location:
Yorkshire UK
Posts:
47
Plugin Contributions:
0

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
Thanks for this I have follwed these instructions but I am still having problems creating the newsletter. When i go to create a Newsletter the FCK Editor is selected (The editor doesnt appear there though)but the only options I have are as follows:

Module: newsletterproduct_notification Subject:

  • Required Rich Text
    Content: Text-Only
    Content:
    I think I have all the settings right in Admin Configures so what may I be doing wrong? I tried pasting html in but all i get on preview is raw code
    Many thanks
    Chris x
8 Sep 2007, 4:27 PM
#42
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: Newsletter won't send in HTML

in /admin/newsletters.php there is an error which affects using FckEditor to edit newsletters.

Edit the file, and check around line 258, there is a line that looks like this

$oFCKeditor->CreateHtml() ; echo $output;

and change it to

$output = $oFCKeditor->CreateHtml() ; echo $output;

and save the file.

That should hopefully make the editor to appear.

8 Sep 2007, 7:21 PM
#43
kiamyka avatar

kiamyka

New Zenner

Join Date:
May 2007
Location:
Yorkshire UK
Posts:
47
Plugin Contributions:
0

Re: Newsletter won't send in HTML

Chuckl:

in /admin/newsletters.php there is an error which affects using FckEditor to edit newsletters.

Edit the file, and check around line 258, there is a line that looks like this

$oFCKeditor->CreateHtml() ; echo $output;

and change it to

$output = $oFCKeditor->CreateHtml() ; echo $output;

and save the file.

That should hopefully make the editor to appear.

:clap: Thanks so much Chuckl that indeed does the trick
xxchrisxx

16 Oct 2007, 7:08 AM
#44
marinela avatar

marinela

New Zenner

Join Date:
Jul 2007
Posts:
63
Plugin Contributions:
0

Re: Newsletter won't send in HTML

wow, this is a long thread!

so, my newsletter is not being sent in html, just plain text

what do I have to check first?

one more question: where do I have to put the pictures that are being sent in my newsletter? please give me the path of the folder.

16 Oct 2007, 7:21 AM
#45
marinela avatar

marinela

New Zenner

Join Date:
Jul 2007
Posts:
63
Plugin Contributions:
0

Re: Newsletter won't send in HTML

it looks fine now, I just changed: Use MIME HTML when sendind HTML

but, on the header of my newsletter I have the zen cart logo.
when can I change that???

16 Oct 2007, 8:26 AM
#46
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: Newsletter won't send in HTML

In the /email folder in the main/top folder of your site, it's called header.jpg.

21 Nov 2007, 10:16 PM
#47
pta avatar

pta

New Zenner

Join Date:
Oct 2007
Location:
ValHalla
Posts:
1
Plugin Contributions:
0

Re: Newsletter won't send in HTML

I've searched around, and it doesn't seem like anybody else is having my problem, which causes me to think it has to do with my host.

Customers can receive order confirmations, as do I (the admin). In both HTML and Text.

Customers do not receive the admin email (when I email them directly from their customer page in the admin)

Nobody receives the newsletter, in either HTML or TEXT. So I tried installing the subscription manager, hoping it might changes some important email files, but that was to no avail.

And now: When a user signs up for the Newsletter Only Subscription, they do not receive the confirmation email.

Here are my Email Option Settings

E-Mail Transport Method: PHP (also tried SMTP, STMPTAUTH)
E-Mail Linefeeds: LF
Use MIME HTML When Sending Emails: true (also tried false)
Send E-Mails: true
Verify E-Mail Addresses Through DNS: false
E-Mail Friendly-Errors: true
Emails must send from known domain? No (also tried yes)
Email Admin Format? HTML

If someone thinks it may be my host, do you have any other suggestions? Thanks guys.

22 Nov 2007, 9:04 AM
#48
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: Newsletter won't send in HTML

Check your domain settings at somewhere like http://www.dnsstuff.com, do a DNS report.

You should also check at one of the many sites, e.g. http://www.mxtoolbox.com/blacklists.aspx

whether your domain or your hosts mail servers are blacklisted.

To check that the mail is actually leaving your site, install the email archive viewer from the downloads area, and enable email archiving. Send some emails and check that they are in the archive.
If so, your Zen Cart site has been able to send the mail, and the problem lies elsewhere.
If the mail is not in the archive, you are using the wrong settings for your hosting co. and should contact them for the correct settings.

23 Nov 2007, 5:04 AM
#49
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Newsletter won't send in HTML

Couldn't help but wonder if he was sending an email or newsletter to himself and inadvertently had text email selected when he registered himself. I discovered that that is exactly what I had done.

Is there a way to have default values of html and subscribe to newsletter when buyers register?

Its kind of off topic but still related.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

23 Nov 2007, 5:57 AM
#50
drbyte avatar

drbyte

Sensei

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

Re: Newsletter won't send in HTML

pixelpadre:

Is there a way to have default values of html and subscribe to newsletter when buyers register?Admin->Configuration->Customer Details

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

23 Nov 2007, 1:49 PM
#51
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Newsletter won't send in HTML

You know...........I have said this in every non zencart tech forum I have been to. There should be an easy link to paypal for each tech support guru such as yourself dr byte. Good answers get a buck. It isnt much but it would add up at the end of the year with all the answers you give out.

:clap:

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

23 Nov 2007, 2:20 PM
#52
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Newsletter won't send in HTML

Perhaps your signature should contain something like:

If my answer saved you time please send $1.00 to my paypal account.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

23 Nov 2007, 2:20 PM
#53
drbyte avatar

drbyte

Sensei

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

Re: Newsletter won't send in HTML

pixelpadre:

You know...........I have said this in every non zencart tech forum I have been to. There should be an easy link to paypal for each tech support guru such as yourself dr byte. Good answers get a buck. It isnt much but it would add up at the end of the year with all the answers you give out.

:clap:

Well in that case, click here:
http://www.zen-cart.com/index.php?main_page=infopages&pages_id=14

Then click on one of the donate buttons that has two or three zeros in it :blush:

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

23 Nov 2007, 2:28 PM
#54
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Newsletter won't send in HTML

signature man...signature...and your personal account not a group account. All techs should do it. It would encourage prompt replies and competition for great answers. ............not that they need to be improved.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

23 Nov 2007, 2:31 PM
#55
drbyte avatar

drbyte

Sensei

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

Re: Newsletter won't send in HTML

pixelpadre:

signature man...signature...and your personal account not a group account.

Noted. And thanks. Nevertheless my preference is that the donation go to the group account.

Will give some thought to the signature change concept.

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

18 Jan 2008, 2:01 PM
#56
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Newsletter won't send in HTML

DrByte:

Noted. And thanks. Nevertheless my preference is that the donation go to the group account.

Will give some thought to the signature change concept.

Here's a forum that is doing precisely what I would like to see yall doing.

namepros.com

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

3 Mar 2008, 5:52 PM
#57
cowboyfred avatar

cowboyfred

Zen Follower

Join Date:
Dec 2005
Location:
colorado
Posts:
84
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

I was having the same issue that my newletters were not sent in html with pics and links. just letting eveyone know that i just installed the above (posted earlier in this thread with the download) and it works!!:clap:

4 Mar 2008, 11:31 PM
#58
shk avatar

shk

New Zenner

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

Re: Newsletter won't send in HTML

Gmail wouldn't display the HTML-portion of my order confirmations.
The supplied functions_email.php took care of it though.

Will this fix be part of the next version of Zen? (post 1.38a)
Just want to know if I need to save the file for future use.

Best regards

5 Mar 2008, 6:34 PM
#59
cleverpork avatar

cleverpork

Zen Follower

Join Date:
Apr 2007
Location:
Washington
Posts:
115
Plugin Contributions:
0

Re: Newsletter won't send in HTML

DrByte:

Chuck,
Instead of the hacks you suggested, does this work correctly?
/includes/functions/functions_email.php
find this code:if (ADMIN_EXTRA_EMAIL_FORMAT == 'TEXT' && substr($module,-6)=='_extra') { $email_html=''; // just blank out the html portion if admin has selected text-only }add this directly below it:```
// if no customer email record found, and admin email format is set to HTML, and sending newsletter, and admin is logged in, use HTML:
if ($customers_email_format_read->RecordCount() == 0 && ADMIN_EXTRA_EMAIL_FORMAT == 'HTML' && in_array($module, array('newsletters', 'product_notification')) && isset($_SESSION['admin_id'])) {
$customers_email_format = 'HTML';
}



Thanks for this post! Worked exactly as said! This is great!

Cris

27 Mar 2008, 3:22 PM
#60
redcinamn avatar

redcinamn

Zen Follower

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

Re: Newsletter won't send in HTML

Hey guys,

I uploaded the zip file fix and (save a copy on server and local) went to the index page of the site after uploading and saw this:

Fatal error: Cannot redeclare zen_mail() (previously declared in /home/tyler/public_html/shop/includes/extra_configures/email_use_8bit.php:41) in /home/tyler/public_html/shop/includes/functions/functions_email.php on line **41

any idea what I did wrong? anyone else had this problem?
~Renee
**

Red