Results 1 to 10 of 10

Thread: [RESOLVED] Newline in Text Only emails

  1. #1

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Resolved [RESOLVED] Newline in Text Only emails

    pls can someone show me how to make new line in a text only email
    to replace the <br> tag in HTML formatted emails.

    Thank you in advance
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Newline in Text Only emails

    Try...

    \n

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Newline in Text Only emails

    \r\n for Windows.

  4. #4
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Newline in Text Only emails

    I was close penagate

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Newline in Text Only emails

    I had a bangin' PHP email tutorial but our server is down

  6. #6

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: Newline in Text Only emails

    i've already tried \n but it doesn't work.
    so i'm going to try \r\n
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  7. #7
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Newline in Text Only emails

    When you can access the tut again can you post it or PM it to me?

    Thanks.

  8. #8
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Newline in Text Only emails

    Quote Originally Posted by modpluz
    i've already tried \n but it doesn't work.
    so i'm going to try \r\n
    Make sure the escape sequences are in double quoted strings

    e.g.
    PHP Code:
    $mail 'First line'."\r\n".'Second line' 
    Otherwise they are not parsed.

    Quote Originally Posted by lintz
    When you can access the tut again can you post it or PM it to me?
    Yes;

  9. #9

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: Newline in Text Only emails

    it's not working...
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  10. #10
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Newline in Text Only emails

    This works for me.....
    PHP Code:
    $mail "'First line'\r\n'Second line'";
    mail("[email protected]","Test lines",$mail); 

Posting Permissions

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



Click Here to Expand Forum to Full Width