Zen Cart Logo
Forums / General Questions / Sending HTML email with ZenCart using PHP5

Sending HTML email with ZenCart using PHP5

Locked

Views: 4,187

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 Feb 2007, 8:24 AM
#1
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Sending HTML email with ZenCart using PHP5

I have posted something about this before but with no progress and something finally came to me tonight.

I recently moved my domains to a new server. I am still running on a Linux server, but I am using PHP5. I have checked and rechecked my settings. I have changed it from HTML to TEXT and back to HTML and I still only receive ALL emails in TEXT mode.

The only thing I can think of at this point is the PHP5. Is anyone out there running PHP5 and able to send emails in HTML format instead of TEXT? Can anyone think of any other settings that need to be changed to make it send in HTML. I am able to receive HTML emails so I know it is not my email client, but I have yet to see one that is sent from the store.

Any assistance would be greatly appreciated.

6 Mar 2007, 12:45 AM
#2
len7560 avatar

len7560

New Zenner

Join Date:
May 2005
Location:
Topanga CA
Posts:
58
Plugin Contributions:
0

Re: Sending HTML email with ZenCart using PHP5

I having this same problem. . . anyone. . .

6 Mar 2007, 5:26 AM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: Sending HTML email with ZenCart using PHP5

Settings in Admin> Configuration> Email Settings?

6 Mar 2007, 5:38 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Sending HTML email with ZenCart using PHP5

If the settings within Zen Cart are set to send HTML emails, and your customers' preferences are set to accept HTML emails, then Zen Cart will send HTML emails to your mailserver for processing and delivery.

However, your mailserver may choose not to send the HTML portion for any number of reasons. That is a server configuration issue to be addressed with your server administrator.

Some folks have found relief from these symptoms by ensuring that their Email Transport method in Zen Cart is set to "PHP".
Other email troubleshooting tips can be found here:
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Email_Problems

15 Mar 2007, 4:55 AM
#5
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Sending HTML email with ZenCart using PHP5

I am still unable to send HTML emails from Zen Cart. No matter how the email is sent, if it is done through ZC, the email received is in TEXT format with NO carriage returns.

We are in the middle of upgrading our Zen Cart. I tried to send an email from the new version and nothing would send with the default setup. I went into the Email configuration and changed the SENDMAIL option to PHP and it not only worked, but it sent in HTML.

It seems to me there has to be something with the Email configuration settings for 1.2.7d since obviously ZC can send HTML from my server. Can anyone think why ZC woud send everything not only in TEXT, but without carriage returns? I know the problem will be fixed when the upgrade is done, but we probably have another week or more and our customers are complaining.

My current email configuration settings are:

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: [email protected]
Send Copy of Create Account Emails To - Status: 1
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
Send Copy of Customer GV Send Emails To - Status: 1
Send Copy of Customer GV Send Emails To: [email protected]
Send Copy of Admin GV Mail Emails To - Status: 0
Send Copy of Customer Admin GV Mail Emails To:
Send Copy of Admin Discount Coupon Mail Emails To - Status: 0
Send Copy of Customer Admin Discount Coupon Mail Emails To:
Send Copy of Admin Orders Status Emails To - Status: 1
Send Copy of Admin Orders Status Emails To: [email protected]
Send Copy of Pending Reviews Emails To - Status: 0
Send Copy of Pending Reviews Emails To:
Set "Contact Us" Email Dropdown List: [email protected]
Allow Guest To Tell A Friend: true
Contact Us - Show Store Name and Address: 1
Send Extra Low Stock Emails: 1
Send Extra Low Stock Emails To: [email protected]
Display "Newsletter Unsubscribe" Link?: true
Audience-Select Count Display: true
SMTP Email Account Mailbox: YourEmailAccountNameHere
SMTP Email Account Password: YourPasswordHere
SMTP Email Mail Host: mail.EnterYourDomain.com
SMTP Email Mail Server Port: 25

PLEASE help.

Thanks,

18 Nov 2007, 8:18 PM
#6
x_o avatar

x_o

New Zenner

Join Date:
May 2007
Posts:
21
Plugin Contributions:
0

Re: Sending HTML email with ZenCart using PHP5

I have recently moved to a new server from PHP4 to PHP5 and noticed that emails in HTML format are not displaying correctly. The part of stylesheet in HTML emails is truncated. All the statements with dot in the begining (.holder ; .header etc) are missing in the received email messages.
I do not know if it PHP5 or specific configuration on my server causes the problem.
:unsure:

But changing Email Transport in Configuration/Email Options to smtp or smtpauth solved it for me.