#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    1
    Rep Power
    0
    Hi!

    I have a slight problem with the mail() function in PHP. So far, everything works fine, except that my webhost seems to wrap around an ID (looks like postmaster+1234@nowhere.com) and puts the contents of the message generated in the message body.

    I would not mind too much except that this forced envelope does not show any Subject: line (also in the body).

    My question: Is this a known problem, or am I using mail() incorrectly by the following source code

    mail("$addresses[$index]","$Subject","$Body","From: $FromnReply-To: $From");

    I would at least like to get a Subject: line in the header.

    Any help is appreciated. Thanks!

    Markus

  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    6
    Rep Power
    0
    You can always try to force this by putting a "Subject: $subject" there you have "From: $From" now. This will force this line to appear in the header as well...

Similar Threads

  1. How do I set up mail?
    By ITmax in forum Mail Server Help
    Replies: 4
    Last Post: June 1st, 2005, 10:56 AM
  2. php sending mail?
    By stojan in forum PHP Development
    Replies: 2
    Last Post: February 12th, 2004, 11:25 PM
  3. How can i set a Priority mail?
    By Jollyguy in forum PHP Development
    Replies: 0
    Last Post: February 9th, 2004, 12:24 AM
  4. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 07:55 AM
  5. fread problem: doesn t compile php code
    By ghorghor2002 in forum PHP Development
    Replies: 2
    Last Post: February 3rd, 2004, 06:25 AM

IMN logo majestic logo threadwatch logo seochat tools logo