SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I'm in need of a simple mail command in PHP that will allow me to send email...I've read Kevin's take on it in his series but really don't follow it.

    Thanks!


    ------------------
    Chris Bowyer chris@mycoding.com
    MyCoding.com: Visit for Launch Notification!
    DomainMailings.com: Who Says All The Good Ones Are Taken?
    MovieForums.com: Talk About Your Favorite Flicks!

  2. #2
    SitePoint Zealot
    Join Date
    Nov 1999
    Location
    Manhattan!
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try this:

    $email = "email@domain.net"; # email address of recipient
    $subject = "This is a test email"; # subject of email
    $body = "This is where the text goes..."; # email body - i.e. text to send
    $mail_hrd = "From: me@mydomain.com <me@mydomain.com>"; # mail header (optional)

    mail($email,$subject,$body,$mail_hdr);

    Christian


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
  •