Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTML email


seaviper

Recommended Posts

Hi,

 

I can send email fine. Problem is, when I use HTML I get this junk at the top and bottom of the email.

 

--=_b727a7641b5503708b2fcc27fa2d5374 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Dear tester We welcome you to Seaviper RC. Welcome to Seaviper RC For help with any of our online services, please email the store-owner: [email protected]. Note: This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to [email protected]. --=_b727a7641b5503708b2fcc27fa2d5374 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear tester

We welcome you to Seaviper RC.

 

Welcome to Seaviper RC

 

 

 

 

 

 

 

 

 

For help with any of our online = services, please email the store-owner: [email protected].

Note:<= /b> This email address was given to us by one of our customers. If you did = not signup to be a member, please send an email to [email protected]. --=_b727a7641b5503708b2fcc27fa2d5374--

 

Any solutions?

 

Also, when sending without Mime/html, I get everything on one single line.

Link to comment
Share on other sites

  • 2 months later...
Hi,

 

I can send email fine. Problem is, when I use HTML I get this junk at the top and bottom of the email.

 

--=_b727a7641b5503708b2fcc27fa2d5374 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Dear tester We welcome you to Seaviper RC. Welcome to Seaviper RC For help with any of our online services, please email the store-owner: [email protected]. Note: This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to [email protected]. --=_b727a7641b5503708b2fcc27fa2d5374 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear tester

We welcome you to Seaviper RC.

 

Welcome to Seaviper RC

 

 

For help with any of our online = services, please email the store-owner: [email protected].

Note:<= /b> This email address was given to us by one of our customers. If you did = not signup to be a member, please send an email to [email protected]. --=_b727a7641b5503708b2fcc27fa2d5374--

 

Any solutions?

 

Also, when sending without Mime/html, I get everything on one single line.

 

 

yeah,i have the same problem and couldnt find any solution.Does anyone know why?

Link to comment
Share on other sites

  • 5 months later...
same problem here... but no idea why ..

 

I added one contribution and an opensource application to assist with sending HTML emails, Newsletters, etc. They are listed in the links in my signature. They are the last 2. Let me know if they help. They were both real easy to install, even with a modified webpage.

Do or Do Not, there is no try.

Link to comment
Share on other sites

  • 5 weeks later...
I added one contribution and an opensource application to assist with sending HTML emails, Newsletters, etc. They are listed in the links in my signature. They are the last 2. Let me know if they help. They were both real easy to install, even with a modified webpage.

 

 

 

Does it work with FireFox browser?

Link to comment
Share on other sites

Hi I saw somewhere a mention that the HTML conrib does not work with Firefox.

What about it?

 

 

Yes, it works. Mozilla is my primary browser. Everything works in both, at least on the 2 that I used.

Do or Do Not, there is no try.

Link to comment
Share on other sites

Yes, it works. Mozilla is my primary browser. Everything works in both, at least on the 2 that I used.

 

Hi, will this solution also solve the junk problem with the emails generated by osC, like the order confirmation ones?

 

Thanks,

 

Bruce

Link to comment
Share on other sites

Hi, will this solution also solve the junk problem with the emails generated by osC, like the order confirmation ones?

 

Thanks,

 

Bruce

 

 

I do not think so, I have tested and only sends what I input. What is th e junk problem? I might know, but just do not remember right now.

Do or Do Not, there is no try.

Link to comment
Share on other sites

I do not think so, I have tested and only sends what I input. What is th e junk problem? I might know, but just do not remember right now.

 

I JUST did these edits and ran a test, and you are right it does not fix the problem. The issue is with phpmailer, I think. The generated email that is sent out is garbled, has no discernible line breaks, and has extra info. Here is the one I just got:

 

Suppertime Express ------------------------------------------------------ Order Number: 31 Detailed Invoice: https://www.suppertimexpress.com/os/account...php/order_id/31 Date Ordered: Tuesday 15 January, 2008 Products ------------------------------------------------------ 1 x Baked beans () = $2.75 ------------------------------------------------------ Sub-Total: $2.75 Sales Tax: $0.21 Total: $2.96 Delivery Address ------------------------------------------------------ Bruce McClure 5215 pacifica Drive San Diego, 92109 United States Billing Address ------------------------------------------------------ Bruce McClure 5215 pacifica Drive San Diego, 92109 United States Payment Method ------------------------------------------------------ Pay on Pick Up or Delivery

 

This looks a lot better than it does in Outlook!

 

Any ideas would be greatly appreciated.

 

Bruce

Link to comment
Share on other sites

I JUST did these edits and ran a test, and you are right it does not fix the problem. The issue is with phpmailer, I think. The generated email that is sent out is garbled, has no discernible line breaks, and has extra info. Here is the one I just got:

 

Suppertime Express ------------------------------------------------------ Order Number: 31 Detailed Invoice: https://www.suppertimexpress.com/os/account...php/order_id/31 Date Ordered: Tuesday 15 January, 2008 Products ------------------------------------------------------ 1 x Baked beans () = $2.75 ------------------------------------------------------ Sub-Total: $2.75 Sales Tax: $0.21 Total: $2.96 Delivery Address ------------------------------------------------------ Bruce McClure 5215 pacifica Drive San Diego, 92109 United States Billing Address ------------------------------------------------------ Bruce McClure 5215 pacifica Drive San Diego, 92109 United States Payment Method ------------------------------------------------------ Pay on Pick Up or Delivery

 

This looks a lot better than it does in Outlook!

 

Any ideas would be greatly appreciated.

 

Bruce

 

Bruce,

 

The email above is referring to an order in the shopping cart, right? If so, have you checked your settings in the admin area under email options? Below are the setting I use and everything works great. Do you have any special contributions installed?

 

E-Mail Transport Method sendmail

E-Mail Linefeeds LF

Use MIME HTML When Sending Emails false

Verify E-Mail Addresses Through DNS false

Send E-Mails true

 

Hope this helps.

Do or Do Not, there is no try.

Link to comment
Share on other sites

Bruce,

 

The email above is referring to an order in the shopping cart, right? If so, have you checked your settings in the admin area under email options? Below are the setting I use and everything works great. Do you have any special contributions installed?

 

E-Mail Transport Method sendmail

E-Mail Linefeeds LF

Use MIME HTML When Sending Emails false

Verify E-Mail Addresses Through DNS false

Send E-Mails true

 

Hope this helps.

 

Yes, an order that has been placed and a confirmation email is being sent to the customer and the store.

 

I'm using phpmailer4osC_v1, which my hosting company told me I need for email to work right. They actually sent me the files. So my settings are:

 

E-Mail Transport Method smtp

E-Mail Linefeeds LF

Use MIME HTML When Sending Emails false

Verify E-Mail Addresses Through DNS false

Send E-Mails true

 

I just tried the "sendmail" settings again, and sue enough it does not work.

 

Any thoughts?

 

Thanks,

 

Bruce

Link to comment
Share on other sites

Hello Bruce and all.

I am sorry to disagree with you. (seriously I wish it was different :)

This contrib does NOT work with FireFox. Here is a screen shot of FireFox http://marketingoverthenet.com/WYSIWYG/WYSIWYG-FireFox.jpg

And here is a screenshot of Internet Explorer: http://marketingoverthenet.com/WYSIWYG/WYSIWYG-Explorer.jpg

 

As you can see there is no HTML editor available in FireFox.

 

My main browser is FireFox and I am quit miffed that I have to fireup IE just for this task.

 

It will give me great pleasure if someone can come up with a fix..

 

Regards

Zali

Link to comment
Share on other sites

Hello Bruce and all.

I am sorry to disagree with you. (seriously I wish it was different :)

This contrib does NOT work with FireFox. Here is a screen shot of FireFox http://marketingoverthenet.com/WYSIWYG/WYSIWYG-FireFox.jpg

And here is a screenshot of Internet Explorer: http://marketingoverthenet.com/WYSIWYG/WYSIWYG-Explorer.jpg

 

As you can see there is no HTML editor available in FireFox.

 

My main browser is FireFox and I am quit miffed that I have to fireup IE just for this task.

 

It will give me great pleasure if someone can come up with a fix..

 

Regards

Zali

 

Zali,

 

I am not using this, just trying to find a solution to the junk email problems several have noted here and on other forums. If I use this with IE, can I edit the system generated emails (most important is order confirmation), or am I barking up the wrong tree.

 

Thanks for answering, however.

 

Bruce

Link to comment
Share on other sites

Yes, an order that has been placed and a confirmation email is being sent to the customer and the store.

 

I'm using phpmailer4osC_v1, which my hosting company told me I need for email to work right. They actually sent me the files. So my settings are:

 

E-Mail Transport Method smtp

E-Mail Linefeeds LF

Use MIME HTML When Sending Emails false

Verify E-Mail Addresses Through DNS false

Send E-Mails true

 

I just tried the "sendmail" settings again, and sue enough it does not work.

 

Any thoughts?

 

Thanks,

 

Bruce

Bruce,

 

If you are using the SMTP transport method, the linefeed character must be set to CRLF.

 

Ben

Link to comment
Share on other sites

I finally solved this by contacting my hosting company (which supports OS Commerce). They switched me to a different server that supports OS Commerce mail better. I then was able to uninstall phpmailer. Using sendmail instead of MIME works great.

Link to comment
Share on other sites

back to the original problem...

 

I am having the dual, html/text messages problem too. It appears to be an issue with email.php but I am not sure what. Upgrading phpmailer to v2 doesn't fix the problem.

 

Anyone?

What are your email configuration parameters set to in admin -> configuration -> email options ?

 

The earlier portion of this topic sounds like an error in the configuration of the email CRLF parameter. I do not believe it is a problem with email.php.

 

What protocol are you using and what do you have the CRLF parameter configured as?

 

Ben

Link to comment
Share on other sites

I finally solved this by contacting my hosting company (which supports OS Commerce). They switched me to a different server that supports OS Commerce mail better. I then was able to uninstall phpmailer. Using sendmail instead of MIME works great.

Bruce,

 

Do you know what email server / version (i.e., Qmail, etc ) you where switch from and to?

 

Ben

Link to comment
Share on other sites

Ben,

 

Here's what my hosting company says in answer to your question. Does this answer the question? I nave no idea what they are talking about...

 

Bruce

 

All of our servers use Exim as a MTA, and the old server and current server that you are on run the same versions of Exim and CPanel.

Link to comment
Share on other sites

Bruce,

 

Do you know what email server / version (i.e., Qmail, etc ) you where switch from and to?

 

Ben

 

Ben,

 

Here's more on why the new server works with email. The "nobody" issue is what forces one to use phpmailer, I think.

 

Bruce

 

The old server runs PHP under Apache, which causes PHP to run as 'nobody', and nobody mail is blocked on the server. The new server runs suPHP, which runs PHP in CGI mode so that it runs as your user, so php mail is sent as [email protected] instead of nobody. This is in regards to a new type of PHP configuration we use.

Link to comment
Share on other sites

Ben,

 

Here's more on why the new server works with email. The "nobody" issue is what forces one to use phpmailer, I think.

 

Bruce

 

The old server runs PHP under Apache, which causes PHP to run as 'nobody', and nobody mail is blocked on the server. The new server runs suPHP, which runs PHP in CGI mode so that it runs as your user, so php mail is sent as [email protected] instead of nobody. This is in regards to a new type of PHP configuration we use.

Bruce,

 

Thanks for the information. That explains everything; your email issue was a webserver / MTA configuration issue. The higher levels of the osCommerce email code ignore the status returned by the low level email class. The user always see the "mail sent successfully" message regardless of any errors that occur at the low level.

 

Ben

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...