email through php

Discussion in 'Meet and Greet' started by henna, Apr 14, 2008.

  1. henna

    henna New Member

    Joined:
    Apr 14, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software Developer
    Location:
    At my set up
    hello,

    can any body tech me how to email through php
    thanks
     
  2. cdc5205

    cdc5205 New Member

    Joined:
    Apr 17, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    PHP:
    <?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($message70);

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

    that's an example from 



    http://us.php.net/manual/en/function.mail.php
     
  3. SpOonWiZaRd

    SpOonWiZaRd Know what you can do.

    Joined:
    May 30, 2007
    Messages:
    746
    Likes Received:
    8
    Trophy Points:
    0
    Occupation:
    Network Engineer/Programmer
    Location:
    South Africa
    I never even knew you could do that...
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice