SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Feb 2000
    Location
    MI
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The following code won't send me an email...anyone know why?

    Code:
     $header = "From: $email\nReply-To: $email\nX-Mailer: Purchasing System by Richard Brevig\n";
     $header .= "Content-Type: text/html; charset=\"iso-8859-1\""; 
     $subject = "New Purchase In Que";
     $body = "There is a new order in place to be processed.  There may be more by now, however, you will not receive another email notification until you log back into the Admin section.";
     mail($email,$subject,$body,$header);
    $email is defined.

    Thanks.

    Richard

  2. #2
    chown linux:users\ /world Hartmann's Avatar
    Join Date
    Aug 2000
    Location
    Houston, TX, USA
    Posts
    6,455
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    You are trying to send an HTML e-mail?

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2000
    Location
    MI
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It doesn't matter to me...I only put it there that way if I ever did, I wouldn't have to go searching for how to.

    I've tried removing it, and a bunch of other stuff, but it just won't actually send me an email.

    Richard

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is this your own server if so is the path to sendmail set up properly in the php.ini file? try doing phpinfo(); and look for the sendmail setting. Also just for testing take the headers out and just send like

    $subject = "New Purchase In Que";
    $body = "There is a new order in place to be processed. There may be more by now, however, you will not receive another email notification until you log back into the Admin section.";
    mail($email,$subject,$body);
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  5. #5
    SitePoint Zealot
    Join Date
    Feb 2000
    Location
    MI
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your help. I think, as you probably do, that the error is on the servers side. I contacted them a day ago, but have had no response. I will give the host a few more days...hopefully we can get it fixed.

    Richard


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
  •