SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2002
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Double breaks in emails

    Hi

    I am experiencing a problem where double breaks show up in emails for users using Outlook. I am sending emails like this..
    PHP Code:
    $header "From: [email]none@example.com[/email]\n";
    $header .= "Reply-To: [email]none@example.com[/email]\n";
    $header .= "Return-Path: [email]none@example.com[/email]";
     
    $email "This is email line 1.\n";
    $email .= "This is email line 2.\n\n";
    $email .= "This is some email text. This is some email text. This is some email text. This is some email text. This is some email text. This is some email text. This is some email text. This is some email text. This is some email text.";
     
    mail($emailToAddress"Subject"$email$header); 
    The problem is that those using Outlook get an email that is like it has two new lines between line 1 and line 2 and four new lines between line 2 and the next paragraph.

    Has anyone else experienced a problem like this?

    Thx in advance.

  2. #2
    SitePoint Zealot Saj's Avatar
    Join Date
    May 2003
    Location
    USA
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would guess its just outlook's way of viewing it. My version doesn't show it like that...which do you have? And Outlook or Outlook Express?
    - Saj

  3. #3
    ko pročita magarac :) boccio's Avatar
    Join Date
    Oct 2003
    Location
    belgrade
    Posts
    354
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This script works just fine for me...
    Tested it on outlook xp, sp1...
    Vivvo CMS - Web publishing at your fingertips
    Mile voli disko, a ja belo kolumbijsko


Bookmarks

Posting Permissions

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