www.webdeveloper.com
Results 1 to 2 of 2

Thread: line breaks are added to PHP mail

  1. #1
    Join Date
    Sep 2004
    Location
    Sri Lanka
    Posts
    469

    Question line breaks are added to PHP mail

    Hi,

    I have done a certain PHP application and it frequently sends mails using php default mail function.

    In most cases it works fine. However occassionally line breaks are applied to message body of mail being sent. Thus any plain text with a line break is rendered with a line break. When same happens to a link, that links are not working.

    For example take this link,

    http://orders.xxxxx.com/order-files/order9517/processed/yyyyy/o_9517_1321362406_9517yyyywm.zip

    It sometimes become,


    http://orders.xxxxx.com/order-files/order9517/p
    rocessed
    /yyyyy/o_9517_1321362406_9517yyyywm.zip

    The text "Files" sometimes being output as,

    Fi
    les

    If someone has a similar experience and knowledge on fixing, any help from them are highly appreciated.

    Thanking you.

  2. #2
    Join Date
    Dec 2009
    Location
    City of Smiles
    Posts
    172
    Post some snippet of the code, have this issue before. Have you used PHP_EOL to fix end of the line on cross-platforms?
    Can't stand long hours coding in front of computer without being intoxicated.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles