Zen Cart Logo
Forums / General Questions / html email, phpmailer, outlook

html email, phpmailer, outlook

Locked

Views: 2,870

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
8 May 2009, 9:45 AM
#1
ahrboktrexon avatar

ahrboktrexon

New Zenner

Join Date:
Oct 2007
Posts:
4
Plugin Contributions:
0

html email, phpmailer, outlook

Hi guys,
need some help to troubleshoot an annoying problem with emails... this is the story:
In 2006 I had a zencart shop (version 1.2.7) installed on a godaddy linux shared server... after some months I decided to migrate to a dedicated server (fc8)... Apparently migration completed with success, but after some days I noticed a problem with html mails and outlook (using 2003 version): mails start with
Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding:
7bit
and html content is not shown.
I spent some days searching... First I thought that problem was related to configuration of charsets, after that I found somewhere that problem is caused by line ending of phpmailer. I applied patches suggested by phpmailers without success, problem still persists.
Than I tried to install zencart 1.3.8, and magically problem disappeared :blink:, so I replaced "damaged" phpmailer class with the one from the last installation, but problem is not solved. :(

Unfortunately I cannot upgrade to 1.3.8 version, because my 1.2.7 is heavily customized (email section has never been changed)...

Can you help me please? maybe suggesting what files can I check?
here below

Delivered-To: [email protected]
Received: by 10.204.69.130 with SMTP id z2cs123166bki;
Fri, 8 May 2009 02:34:55 -0700 (PDT)
Received: by 10.151.119.2 with SMTP id w2mr6295175ybm.200.1241775294017;
Fri, 08 May 2009 02:34:54 -0700 (PDT)
Return-Path: [email protected]
Received: from k2smtpout01-01.prod.mesa1.secureserver.net (k2smtpout01-01.prod.mesa1.secureserver.net [64.202.189.88])
by mx.google.com with SMTP id 1si1762887gxk.92.2009.05.08.02.34.53;
Fri, 08 May 2009 02:34:53 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 64.202.189.88 as permitted sender) client-ip=64.202.189.88;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 64.202.189.88 as permitted sender) smtp.mail=[email protected]
Received: (qmail 9372 invoked from network); 8 May 2009 09:34:47 -0000
Received: from unknown (HELO ip-xxx-xxx-xxx-xxx.ip.secureserver.net) (xxx.xxx.xxx.xxx)
by k2smtpout01-01.prod.mesa1.secureserver.net (64.202.189.88) with ESMTP; 08 May 2009 09:34:37 -0000
Received: by ip-xxx-xxx-xxx-xxx.ip.secureserver.net (Postfix, from userid 48)
id 67AF5EB800C; Fri, 8 May 2009 11:36:52 +0200 (CEST)
To: "xxxxx xxxxxx" [email protected]
Subject: let's try
From: "dedicated server" [email protected]
MIME-Version: 1.0
X-Mailer: Zen Cart Mailer
Content-Type: multipart/alternative;
boundary="=_b82a304bd6f4f3a8a9c94bae178051cd"
Message-Id: 20090508093652.67AF5EB800C@ip-208-109-198-114.ip.secureserver.net
Date: Fri, 8 May 2009 11:36:52 +0200 (CEST)

--=_b82a304bd6f4f3a8a9c94bae178051cd
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

this is a plain text message
--=_b82a304bd6f4f3a8a9c94bae178051cd
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset= =3Diso-8859-1" /> <base href=3D"http://www.domain.com/shop/" /><style ty= pe=3D"text/css">body {background-color:#c8c8c8; color:#000000; font-family:= Verdana, Arial, Helvetica, sans-serif; text-align:center;}.footer {font-siz= e:9px; color:#666666; margin-top:10px; text-align:left; width:700px;}.foote= r a:link, hover, visited {color:#666666;}.disclaimer {color:#666666; font-s= ize:10px; margin-top:10px; padding:5px; text-align:left; width:700px;}.disc= laimer a:link, hover, visited {color:#666666;}.copyright {padding:5px; text= -align:left; width:700px;}</style></head><body><div> <!-- Content Section= --> <div> <div><span style=3D"font-weight: bold;">this is an html text= in bold</span></div> </div> <!-- Footer Section --> <div class=3D"foo= ter"> <div class=3D"copyright">Copyright © 2007-2008 <a href=3D"htt= p://www.domain.com" target=3D"_blank"></a>.</di= v> </div></div><div class=3D"disclaimer"> <div class=3D"disclaimer">Esta = direcci=F3n de e-mail fu=E9 suministrada por uno de nuestros clientes. Si e= l presente mensaje ha sido recibido por error, env=EDe un e-mail a <a href= =3D"mailto:[email protected]">[email protected] </a> <br> Las peti= ciones de borrado pueden ser enviadas a esta direcci=F3n, y ser=E1n cumplid= as y respetadas.</div></div></body></html> --=_b82a304bd6f4f3a8a9c94bae178051cd--
8 May 2009, 5:28 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: html email, phpmailer, outlook

AhrbokTrexon:

In 2006 I had a zencart shop (version 1.2.7) installed ...

... I found somewhere that problem is caused by line ending of phpmailer.
I applied patches suggested by phpmailers without success, problem still persists.
Um ... v1.2.7 doesn't use phpMailer. It used old email infrastructure code inherited from oscommerce.

That old code was ripped out and replaced with phpMailer in v1.3.0.

AhrbokTrexon:

Than I tried to install zencart 1.3.8, and magically problem disappeared
Well ... there are two factors involved here:
a) you changed hosting and suddenly things broke -- what's different between the two?
b) you're using an ancient no-longer-supported version (1.2.7) of Zen Cart -- you know the "current" (v1.3.8) version works fine with your new host.

.
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, 11:16 AM
#3
ahrboktrexon avatar

ahrboktrexon

New Zenner

Join Date:
Oct 2007
Posts:
4
Plugin Contributions:
0

Re: html email, phpmailer, outlook

DrByte:

Um ... v1.2.7 doesn't use phpMailer. It used old email infrastructure code inherited from oscommerce.

That old code was ripped out and replaced with phpMailer in v1.3.0.

Well ... there are two factors involved here:
a) you changed hosting and suddenly things broke -- what's different between the two?
b) you're using an ancient no-longer-supported version (1.2.7) of Zen Cart -- you know the "current" (v1.3.8) version works fine with your new host.

Hi DrByte, thank you for your attention.
Strange issue about phpmailer, because I've a phpmailer.class.php in includes/classes/

the main difference between old hosting and the new server is php version... in the first server I was using php 4.2, new server uses 5.2.6

Thanks in avance for your precious help