Mail Function

Discussion in 'PHP' started by Brijesh Kandu, May 7, 2011.

  1. #1
    How We Use Mail Function In PHP?
    Tell me in Details..........:confused:
     
    Brijesh Kandu, May 7, 2011 IP
  2. ker

    ker Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    ker, May 8, 2011 IP
  3. lucyfrances

    lucyfrances Greenhorn

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    you can simple mail("example@example.com",$subject,$body,$headers);
     
    lucyfrances, May 8, 2011 IP
  4. AdWorkMedia

    AdWorkMedia Member

    Messages:
    76
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    28
    #4
    Here's a quick snippet of the mail function. Just replace "PUT FROM EMAIL HERE" with your own email and add values to the empty "".

     
    AdWorkMedia, May 9, 2011 IP
  5. ntomsheck

    ntomsheck Peon

    Messages:
    87
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You might have to get the PECL extension, or whichever it is, if your SMTP server requires authentication. The basic mail function does not support auth.
     
    ntomsheck, May 9, 2011 IP