Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default phpmailer linefeed problem

    I have installed the phpmailer contrib and html emails sent from admin aren't formatting properly. I have sendmail, CRLF and mime set in Email options but if I type in the rich text box, the email doesn't format properly ie paragraphs are ignored and all text appears on one line. I'm sure I had this working on another site without needing to use htmlarea to type the emails.

    Have I missed something?

  2. #2
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: phpmailer linefeed problem

    anyone.......?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: phpmailer linefeed problem

    I don't know what version of Zen Cart you're using... but the email system for sending from the admin area is the same as sending from the store area. Thus, I'm surprised at the reported difference in behaviour.
    Are there any other addons you've installed that might be contributing to the problem?

    As an aside, phpMailer was integrated more tightly when it was built-in to the v1.3.0+ code. You might try testing the same functions on a new test site using the newer code.
    .

    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.

  4. #4
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: phpmailer linefeed problem

    Thanks for the reply. I'm using 1.2.6.

    The problem is the same with emails sent from admin and for example from the send to a friend page.

    Basically, the message body isn't line breaking. In Admin I can enter html code using Xinha or html area but people using the send to a friend page won't be entering html code and therefore the message body just appears in a single line. Unless I'm dreaming I thought I had this working previously on another installation...am I wrong??

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: phpmailer linefeed problem

    You mentioned that you've tried adjusting the CRLF settings.
    Was there any difference when you switched between SMTP and SENDMAIL and other transport methods?

    Each mailserver is unique, and there are oddities with some configurations, since some like to re-translate the content they're processing, thus messing with things like linebreaks. Sometimes very tough to resolve.
    .

    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.

  6. #6
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: phpmailer linefeed problem

    I can only use sendmail and have tried switching LF and CRLF but no difference. Text mails line break perfectly - it's just the message body when sending HTML mails that refuses to budge.

    Just to confirm - I'm not being daft - well no more than usual - it should be possible for someone to enter paragraphs in the send to a friend page (just like typing in this message box on zencart) shouldn't it? And equally in the admin rich text box...

    It's really frustrating and thanks for your help by the way.

 

 

Similar Threads

  1. Old version of PHPMailer (not a security problem)
    By citoyen in forum Bug Reports
    Replies: 4
    Last Post: 27 Oct 2010, 02:08 PM
  2. PHPMailer Vulnerability ?
    By Peekay in forum General Questions
    Replies: 4
    Last Post: 19 Jun 2007, 08:15 PM
  3. phpmailer - wrapper
    By kobra in forum General Questions
    Replies: 7
    Last Post: 24 Apr 2007, 10:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg