Another bug belongs to SMTP: if enabled your server is not able to use SMTP because of a wrong header (gets wrong answer back from mailserver).
Attached the fixed version.
Unzip package and transfer the file (use same structure).
This fix might belong also to earlier OC versions (specially SMTP).
On your own risk you can try it with OC versions < 1.4.x.
Due another bug in the newsletter module (1.4.x) I have made another package (see other thread) which corrects several bugs (also included there this fix).
UPDATE: new version (fixes also the SMTP bug and the subject encoding)
UPDATE: currently not avaliable
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."
Code: Select all
To: email@example.com Subject: test From: Your Store<firstname.lastname@example.org> Reply-To: Your Store<email@example.com> X-Mailer: PHP/5.2.8 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_47b8cbc18b2d52da14ca55750522b02c" Message-Id: <E1NXvV0-0001cQ-V8@hostingseries42.net> Sender: <firstname.lastname@example.org> Date: Thu, 21 Jan 2010 11:46:54 +0000 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingseries42.net X-AntiAbuse: Original Domain - gmail.com X-AntiAbuse: Originator/Caller UID/GID - [605 32003] / [47 12] X-AntiAbuse: Sender Address Domain - hostingseries42.net X-Source: /usr/bin/php X-Source-Args: /usr/bin/php /home/opencart/public_html/dev/admin/index.php X-Source-Dir: opencart.com:/public_html/dev/admin ------=_NextPart_47b8cbc18b2d52da14ca55750522b02c Content-Type: multipart/alternative; boundary="----=_NextPart_47b8cbc18b2d52da14ca55750522b02c_alt" ------=_NextPart_47b8cbc18b2d52da14ca55750522b02c_alt Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit This is a HTML email and your email client software does not support HTML email! ------=_NextPart_47b8cbc18b2d52da14ca55750522b02c_alt Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit <html dir="ltr" lang="en"> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body><p> this is a html test!</p> </body> </html> ------=_NextPart_47b8cbc18b2d52da14ca55750522b02c_alt--
Project Owner & Developer.
So are you saying it is supposed to appear as html code?
When I sent a newsletter to myself, the entire email appears with html code, with <head>, <body>, <p>, etc. in the copy.
How do I prevent this?
Users browsing this forum: No registered users and 14 guests