tranqui69 Posted November 26, 2006 Share Posted November 26, 2006 HI!. First, sorry for my english. I have a shop instaled in mi ISP, everithing is OK but the order mails, doesn´t arrive in html. An image is better than my bad words. MI ISP is windows based and requires smtp autentification. This is configured using PHPMailer4OSC. Mi Email configuration is this: E-Mail Transport Method smtp E-Mail Linefeeds CRLF Use MIME HTML When Sending Emails true Verify E-Mail Addresses Through DNS false Send EMails true This is an Order mail recived with HTML enabled. --=_d7abc2307d322ed56d892dc735042b14 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Tranqui's WebShop ------------------------------------------------------ Número de Pedido: 20 Pedido Detallado: http://www.mitienda-noexiste.com/catalog/a...php?order_id=20 Fecha del Pedido: domingo 26 noviembre, 2006 HTML ENABLED Productos ------------------------------------------------------ 1 x Blade Runner - Director's Cut (DVD-BLDRNDC) = 30.00EUR ------------------------------------------------------ Subtotal: 30.00EUR IVA 16%: 4.80EUR Total: 34.80EUR Direcciön de Entrega ------------------------------------------------------ Tranqui Lino Mi Casa Mi Barrio Madrid 08080 - Madrid, Spain Dirección de Facturación ------------------------------------------------------ Tranqui Lino Mi Casa Mi Barrio Madrid 08080 - Madrid, Spain Forma de Pago ------------------------------------------------------ Contra Reembolso --=_d7abc2307d322ed56d892dc735042b14 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Tranqui=B4s WebShop------------------------------------------= ------------ N=FAmero de Pedido: 20 Pedido Detallado: http://www.mi= tienda-noexiste.com/catalog/account_history_info.php?order_id=3D20 Fecha d= el Pedido: domingo 26 noviembre, 2006 HTML ENABLED Productos<= br>------------------------------------------------------ 1 x Blade Runn= er - Director's Cut (DVD-BLDRNDC) =3D 30.00EUR -------------------------= ----------------------------- Subtotal: 30.00EUR IVA 16%: 4.80EUR = Total: 34.80EUR Direcci=F6n de Entrega --------------------------= ---------------------------- Tranqui Lino Mi Casa Mi Barrio Mad= rid 08080 - Madrid, Spain Direcci=F3n de Facturaci=F3n ---= --------------------------------------------------- Tranqui Lino Mi C= asa Mi Barrio Madrid 08080 - Madrid, Spain Forma de Pag= o ------------------------------------------------------ Contra Reemb= olso --=_d7abc2307d322ed56d892dc735042b14-- But the strangest thing is this. This is an order sent with plain text only Tranqui´s WebShop ------------------------------------------------------ Número de Pedido: 21 Pedido Detallado: http://www.mitienda-noexiste.com/catalog/a...php?order_id=21 Fecha del Pedido: domingo 26 noviembre, 2006 PLAIN TXT Productos ------------------------------------------------------ 1 x Blade Runner - Director's Cut (DVD-BLDRNDC) = 30.00EUR ------------------------------------------------------ Subtotal: 30.00EUR IVA 16%: 4.80EUR Total: 34.80EUR Direcciön de Entrega ------------------------------------------------------ Tranqui Lino Mi Casa Mi Barrio Madrid 08080 - Madrid, Spain Dirección de Facturación ------------------------------------------------------ Tranqui Lino Mi Casa Mi Barrio Madrid 08080 - Madrid, Spain Forma de Pago ------------------------------------------------------ Contra Reembolso Is there a way to fix this? I'm going crazy. My ISP works with plesk and i see that there is no MIME type defined. Can this be the problem? Maybe some kind of CHMODS. Please help me. I don't know what to do. (Besides to learn english) Thanks a lot for your time! Link to comment Share on other sites More sharing options...
BillyWizz Posted November 29, 2006 Share Posted November 29, 2006 Hi there. Double check MIME is on in Configuration->E-mail Options->Use MIME HTML When Sending Emails. Test, and if still no success open mail.php and look for the following line: $mimemessage->add_text($message); ...change it to: $mimemessage->add_html($message); If you need authentication (you say emails are sending already) then I may be able to give you some code I am developing now for SMTP Authentication. Will Link to comment Share on other sites More sharing options...
MJP Posted November 29, 2006 Share Posted November 29, 2006 Hi there. Double check MIME is on in Configuration->E-mail Options->Use MIME HTML When Sending Emails. Test, and if still no success open mail.php and look for the following line: $mimemessage->add_text($message); ...change it to: $mimemessage->add_html($message); If you need authentication (you say emails are sending already) then I may be able to give you some code I am developing now for SMTP Authentication. Will I'm having the same issue and tried Billy's suggestion but still HTML email are not being sent out just the HTML code. Very frustrating to say the least! Link to comment Share on other sites More sharing options...
BillyWizz Posted November 29, 2006 Share Posted November 29, 2006 I'm having the same issue and tried Billy's suggestion but still HTML email are not being sent out just the HTML code. Very frustrating to say the least! Hi MJP, If you need SMTP authentication then I am developing the following code for email.php (note there are two of these). The following is working nicely. Look for the following conditional: if (EMAIL_TRANSPORT == 'smtp') { Replace all 4 lines with the following: if (EMAIL_TRANSPORT == 'smtp') { include_once("Mail.php"); $this->headers = implode($this->lf,$this->headers); $this->headers = split('[:'.$this->lf.']',$this->headers); $headers = array(); $headers["MIME-Version"] = $this->headers[1]; $headers["X-Mailer"] = $this->headers[3]; $headers["Content-Type"] = $this->headers[5].$this->headers[6]; $headers["From"] = $from; $headers["To"] = $to_addr; $headers["Subject"] = $subject; // Edit these settings to access your smtp server $params["host"] = "*******"; //mail.yoursmtpdomain.com $params["port"] = "****"; //25 or try 2525 $params["auth"] = true; $params["username"] = "*******"; //username $params["password"] = "*******"; //password // BCC Email Address // $bcc_addr = "[email protected]"; // if (is_string($bcc_addr)) { // $to_addr = $to_addr . ',' . $bcc_addr; // } // Create the mail object using the Mail::factory method $mail_object =& Mail::factory("smtp", $params); return $mail_object->send($to_addr, $headers, $this->output); } else { return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers)); } } This has kept the headers intact so that the multipart email works. It needs testing - especially with the newsletter. Any feedback appreciated. Coder suggestions: Can code efficiency be improved with list() instead of implode() and split()? Pull in "Send Extra Emails" global field for BCC Fix header X-Authentication-Warning with tell_a_friend.php when not in smtp mode (it may trigger some spam filters) - Im looking into this now. Will Link to comment Share on other sites More sharing options...
tranqui69 Posted November 29, 2006 Author Share Posted November 29, 2006 Thanks a lot BillyWizz, but it does not work for me. Test, and if still no success open mail.php and look for the following line: $mimemessage->add_text($message); ...change it to: $mimemessage->add_html($message); I'm using "phpMailer4osC_v1" to setup my auth smtp conection, and the msg arrive, but still bad. :'( How about the mime types in my server? It's a Windows Plesk Server and there is no mime types defined, maybe this is the reason..? By the way BillyWizz nice work!!! Link to comment Share on other sites More sharing options...
uplink Posted December 12, 2006 Share Posted December 12, 2006 SAME issue for me. I've installed 3 different OSC sites on different domains on same ISP, all having the same issue. MIME is turned on. Any suggestions? Thanks See below: --=_ca886a0a09ec241c0bbe7557db91544b Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit MMCA Store2 ------------------------------------------------------ Order Number: 11 Detailed Invoice: http://www.mysite.com/shop2/account_histor...php?order_id=11 Date Ordered: Tuesday 12 December, 2006 Products ------------------------------------------------------ 1 x TravelMate C312XCi () = $745.99 ------------------------------------------------------ Sub-Total: $745.99 Flat Rate (Best Way): $5.00 Total: $750.99 Delivery Address ------------------------------------------------------ test tester 123 test test, MO 12345 United States Billing Address ------------------------------------------------------ test tester 123 test test, MO 12345 United States Payment Method ------------------------------------------------------ Cash on Delivery --=_ca886a0a09ec241c0bbe7557db91544b Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MMCA Store2 ------------------------------------------------------ Or= der Number: 11 Detailed Invoice: http://www.mysite.com/shop2/account= _history_info.php?order_id=3D11 Date Ordered: Tuesday 12 December, 2006<= br> Products ------------------------------------------------------1 x TravelMate C312XCi () =3D $745.99 --------------------------------= ---------------------- Sub-Total: $745.99 Flat Rate (Best Way): $5.00= Total: $750.99 Delivery Address -----------------------------= ------------------------- test tester 123 test test, MO 12345United States Billing Address ---------------------------------= --------------------- test tester 123 test test, MO 12345 Un= ited States Payment Method --------------------------------------= ---------------- Cash on Delivery --=_ca886a0a09ec241c0bbe7557db91544b-- Link to comment Share on other sites More sharing options...
BillyWizz Posted December 13, 2006 Share Posted December 13, 2006 SAME issue for me. I've installed 3 different OSC sites on different domains on same ISP, all having the same issue. MIME is turned on. Any suggestions? Thanks See below: --=_ca886a0a09ec241c0bbe7557db91544b Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit MMCA Store2 ------------------------------------------------------ Order Number: 11 Detailed Invoice: http://www.mysite.com/shop2/account_histor...php?order_id=11 Date Ordered: Tuesday 12 December, 2006 Products ------------------------------------------------------ 1 x TravelMate C312XCi () = $745.99 ------------------------------------------------------ Sub-Total: $745.99 Flat Rate (Best Way): $5.00 Total: $750.99 Delivery Address ------------------------------------------------------ test tester 123 test test, MO 12345 United States Billing Address ------------------------------------------------------ test tester 123 test test, MO 12345 United States Payment Method ------------------------------------------------------ Cash on Delivery --=_ca886a0a09ec241c0bbe7557db91544b Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MMCA Store2 ------------------------------------------------------ Or= der Number: 11 Detailed Invoice: http://www.mysite.com/shop2/account= _history_info.php?order_id=3D11 Date Ordered: Tuesday 12 December, 2006<= br> Products ------------------------------------------------------1 x TravelMate C312XCi () =3D $745.99 --------------------------------= ---------------------- Sub-Total: $745.99 Flat Rate (Best Way): $5.00= Total: $750.99 Delivery Address -----------------------------= ------------------------- test tester 123 test test, MO 12345United States Billing Address ---------------------------------= --------------------- test tester 123 test test, MO 12345 Un= ited States Payment Method --------------------------------------= ---------------- Cash on Delivery --=_ca886a0a09ec241c0bbe7557db91544b-- What are your Email Settings? Mine are set to... E-Mail Transport Method = smtp E-Mail Linefeeds = LF Use MIME HTML When Sending Emails = true Verify E-Mail Addresses Through DNS = true Send E-Mails = true Also, I assume your mail server handles authentication, if not then you need to turn it off in: /catalog/admin/includes/classes/email.php $params["auth"] = false; Hope this helps. Link to comment Share on other sites More sharing options...
uplink Posted December 13, 2006 Share Posted December 13, 2006 Thanks for responding BillyWiz, My settings are: E-Mail Transport Method = smtp E-Mail Linefeeds = LF (also tried CRLF) Use MIME HTML When Sending Emails = true Verify E-Mail Addresses Through DNS = false Send E-Mails = true and my AUTH settings: $params["auth"] = false; I think I've received emails like this when ordering from stores, it must be something fairly common. Since I've tried several vanilla installs and they are all acting the same way. Also, I have Joomla installed on the same site, and it sends out its emails flawlessly. thanks in advance for your help. Link to comment Share on other sites More sharing options...
BillyWizz Posted December 14, 2006 Share Posted December 14, 2006 Thanks for responding BillyWiz,My settings are: E-Mail Transport Method = smtp E-Mail Linefeeds = LF (also tried CRLF) Use MIME HTML When Sending Emails = true Verify E-Mail Addresses Through DNS = false Send E-Mails = true and my AUTH settings: $params["auth"] = false; I think I've received emails like this when ordering from stores, it must be something fairly common. Since I've tried several vanilla installs and they are all acting the same way. Also, I have Joomla installed on the same site, and it sends out its emails flawlessly. thanks in advance for your help. Hi. If you post or PM me the contents of your mail.php and email.php files and Ill take a quick look at whats different - make sure you blank out (***) the user/password first though. Will Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.