Zen Cart Logo
Forums / General Questions / Sending HTML email via Zencart changes to text

Sending HTML email via Zencart changes to text

Locked

Views: 2,233

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
16 Oct 2008, 3:28 PM
#1
digitalguard avatar

digitalguard

Zen Follower

Join Date:
Nov 2007
Posts:
121
Plugin Contributions:
0

Sending HTML email via Zencart changes to text

Hello,

We have zen-cart 1.2.6 cart, and the problem is when we try to send out a HTML format email for advertising it actually does not send html but converts to TEXT

I had tried to send out a test email with picture it actually just sent this


This is a test email... @CRLFBuy it NOW!!!@CRLF@CRLF

This email was spoose to be HTML and like this


This is a test email...
Buy it NOW!!!!!
IMAGE GOES HERE, IMAGE IS A URL FROM SERVER

Any suggestions on how to fix this?

Thanks
DigitalGuard

16 Oct 2008, 3:45 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Sending HTML email via Zencart changes to text

Who are you sending this test mail to?
What are your config > email options settings?

16 Oct 2008, 5:05 PM
#3
digitalguard avatar

digitalguard

Zen Follower

Join Date:
Nov 2007
Posts:
121
Plugin Contributions:
0

Re: Sending HTML email via Zencart changes to text

kobra:

Who are you sending this test mail to?
What are your config > email options settings?

Sending the email to a test customer (MySelf)

Email Options

Here is my options, my email names have been changed...

E-Mail Transport Method sendmail
E-Mail Linefeeds LF
Use MIME HTML When Sending Emails true
Verify E-Mail Addresses Through DNS false
Send E-Mails true
Email Archiving Active? false
E-Mail Friendly-Errors true
Email Address (Displayed to Contact you) [email protected]
Email Address (sent FROM) [email protected]
Email Admin Format? HTML
Send Copy of Order Confirmation Emails To
Send Copy of Create Account Emails To - Status 0
Send Copy of Create Account Emails To [email protected]
Send Copy of Tell a Friend Emails To - Status 0
Send Copy of Tell a Friend Emails To 0
Send Copy of Customer GV Send Emails To - Status 0
Send Copy of Customer GV Send Emails To 0
Send Copy of Admin GV Mail Emails To - Status 0
Send Copy of Customer Admin GV Mail Emails To 0
Send Copy of Admin Discount Coupon Mail Emails To - Status 0
Send Copy of Customer Admin Discount Coupon Mail Emails To 0
Send Copy of Admin Orders Status Emails To - Status 0
Send Copy of Admin Orders Status Emails To 0
Send Copy of Pending Reviews Emails To - Status 0
Send Copy of Pending Reviews Emails To
Set "Contact Us" Email Dropdown List
Allow Guest To Tell A Friend true
Contact Us - Show Store Name and Address 1
Send Copies of FTD Foral Order Emails To [email protected]
Send Copies of FTD Foral Order ERRORS Emails To [email protected]
Send Extra Low Stock Emails 0
Send Extra Low Stock Emails To 0
Display "Newsletter Unsubscribe" Link? true
Audience-Select Count Display true
SMTP Email Account Mailbox YourDomain.com
SMTP Email Account Password YourDomain.com
SMTP Email Mail Host YourDomain.com
SMTP Email Mail Server Port 25

Thanks
DigitalGuard

16 Oct 2008, 5:10 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Sending HTML email via Zencart changes to text

When you registered yourself as a test customer, did you elect to be sent emails as HTML, or as plain text.

I recall that with 1.2.6, the default offering for new registrations was TEXT.

Go into your "My Account" settings and see what protocol you signed up to (HTML or TEXT)...

... I'll bet the TEXT radio button is checked!

16 Oct 2008, 5:11 PM
#5
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Sending HTML email via Zencart changes to text

Not sure about the older versions, but in the current 1.3.7 and up, each customer has a setting for text or html email.

Does your version have that setting?
Is it set to html?

JOhn ><>

16 Oct 2008, 5:15 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Sending HTML email via Zencart changes to text

DigitalGuard:

Hello,

We have zen-cart 1.2.6 cart, and the problem is when we try to send out a HTML format email for advertising it actually does not send html but converts to TEXT

There have been numerous improvements to the Zen Cart code, including email-related fixes and enhancements, in the 3 years since v1.2.6 was released. Ten new versions have been published since then.

One of the fixes includes a correction to the @CRLF tag being handled incorrectly ... so that it doesn't show up in the text-version of the emails.

I recommend setting up the same scenario on a v1.3.8a site and testing it there. If there is still a problem, we can deal with it in the current code.

16 Oct 2008, 5:30 PM
#7
digitalguard avatar

digitalguard

Zen Follower

Join Date:
Nov 2007
Posts:
121
Plugin Contributions:
0

Re: Sending HTML email via Zencart changes to text

fairestcape:

When you registered yourself as a test customer, did you elect to be sent emails as HTML, or as plain text.

I recall that with 1.2.6, the default offering for new registrations was TEXT.

Go into your "My Account" settings and see what protocol you signed up to (HTML or TEXT)...

... I'll bet the TEXT radio button is checked!

Yup yup, that was it, is there way I can change all the custoemrs to HTML from database or cart without doing it 1 by 1?

16 Oct 2008, 5:36 PM
#8
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Sending HTML email via Zencart changes to text

You can probably make the edit in the database... probably best to do so via phpMyAdmin. It's likely to be a switch setting (ie: changing a "0" to a "1"), but as I don't have a 1.2.6 dbase, I can't tell you exactly where to look in the tables for this.

Dr Byte may be able to tell you of a nifty SQL query that will have the same effect...

... and by the way, the minute you've made the change, upgrade to 1.3.8a

PS: Unilaterally changing the protocol from txt to HTML may be in violation of Can-Spam laws.

16 Oct 2008, 5:40 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Sending HTML email via Zencart changes to text

is there way I can change all the custoemrs to HTML
All email clients do not have support for html mail and even those that do can usually be switched to text only.....
Some do not accept html mail as this is usually the avenue for other malady's
You are best off designing a factual text email also

16 Oct 2008, 5:43 PM
#10
digitalguard avatar

digitalguard

Zen Follower

Join Date:
Nov 2007
Posts:
121
Plugin Contributions:
0

Re: Sending HTML email via Zencart changes to text

fairestcape:

You can probably make the edit in the database... probably best to do so via phpMyAdmin. It's likely to be a switch setting (ie: changing a "0" to a "1"), but as I don't have a 1.2.6 dbase, I can't tell you exactly where to look in the tables for this.

Dr Byte may be able to tell you of a nifty SQL query that will have the same effect...

... and by the way, the minute you've made the change, upgrade to 1.3.8a

PS: Unilaterally changing the protocol from txt to HTML may be in violation of Can-Spam laws.

Hoestly can't I have customizations done on the site, and its almost impossible to convert them, It would need to be redone.

But thank you for your assistance.

Thanks
DigitalGuard

16 Oct 2008, 5:44 PM
#11
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Sending HTML email via Zencart changes to text

Kobra got to this point before I did. :P

Don't assume that all your users have their MS Outlook set to receive HTML. Many people (like me) configure their e-mail client to take TEXT only, so you must configure your correspondence to suit both formats.