SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Php Help,

  1. #1
    SitePoint Addict gl3nnx's Avatar
    Join Date
    May 2005
    Location
    at http://www.gl3nnx.net
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Php Help,

    hi guys am a PHP newbie, i have a problem,

    <?php
    // The message
    $message = "Line 1\nLine 2\nLine 3";

    // In case any of our lines are larger than 70 characters, we should use wordwrap()
    $message = wordwrap($message, 70);

    // Send
    mail('caffinated@example.com', 'My Subject', $message);
    ?>

    ======

    i try these PHP.NET's example code for 'mail' but it doest work for me, anyone knows whats the problem?, but other PHP functions work with me.

  2. #2
    SitePoint Evangelist Tapan's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    563
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Smile

    Hi,

    try this:

    PHP Code:
    $message wordwrap($message70"\n"); 
    Hope this helps.

    Thakns


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
  •