#1
  1. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    Okay, I don't know what the problem is, as I've done dozen's of mail messages via php, and never have I encountered this one..

    I'm pretty stumped, I've gone over the header code time and again, and can't seem to find the glitch.

    here's the snipit of the header:

    $added_headers = "From: "SnR Graphics Billing" <billing@snr-graphics.com>".$mb;
    $added_headers .= "Bcc: "SnR Graphics Billing" <billing@snr-graphics.com>".$mb;
    $added_headers .= "Reply-To: "SnR Graphics Billing" <billing@snr-graphics.com>".$mb;
    $added_headers .= "X-Mailer: PHP ".phpversion().$mb;
    $added_headers .= "X-Sender: SNG GRAPHICS".$mb.$mb;


    the problem, is the message header is becoming part of the message body.

    The message is still getting to the appropriate address, of at least I think
    it is.

    I've tried several different formats for this
    the above was the last attempt to get it right.

    normally, I use something like this:
    $added_header = 'From: "Me" <me@me.com>'.$mb;

    where $mb is the line break.

    Granted, in this particular case, the real difference, is the mail is being sent from my local server (win98) and "NOT" from the actual domain server (Unix).

    Perhaps the problem lies in the PHP configuration.. though I seriously don't think so, as I have another php application, which sends mail, and it doesn't have the problem.
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,640
    Rep Power
    4476
    What is the syntax of the mail() statement you are using. Are you sure it isn't just the mail reader showing the headers before the message? some of them do that. and $mb = "n", right?
  4. #3
  5. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by SepodatiCreations:
    What is the syntax of the mail() statement you are using. Are you sure it isn't just the mail reader showing the headers before the message? some of them do that. and $mb = "n", right?[/quote]

    Eh..

    syntax is:
    if (!@mail("$to", "$subject", "$message", "$added_header") {
    echo "error message"; }
    else { echo "message sent"; }

    The line break is actually "rn"; as it's win32 (win98) that's doing the send, and it times out if you feed it a unix line break of "n"

    It's not the reader, (Eudora Pro)... To be quite frank, the only part of the outbound message that's proper is the subject, and body of the message..

    I'm really at a loss, like I said, I can't find anything wrong with it.



    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.
  6. #4
  7. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,640
    Rep Power
    4476
    I know you said you used trim($subject) and it "worked". I don't really see how this solved anything, though. What are the values of $to and $subject? Are there quotes or commas in the values?

    I guess it's not too big of a deal if it works. If you want to troubleshoot it some more, drop me an email. I probably won't come across this thread again.

    ---John Holmes...

Similar Threads

  1. How do I set up mail?
    By ITmax in forum Mail Server Help
    Replies: 4
    Last Post: June 1st, 2005, 09:56 AM
  2. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 06:55 AM
  3. mail function smtp problem
    By emzyme in forum PHP Development
    Replies: 3
    Last Post: January 25th, 2004, 06:59 PM
  4. Java mail problem.
    By Programmer123 in forum Java Help
    Replies: 4
    Last Post: January 24th, 2004, 11:21 AM
  5. php mail permissions problem
    By LANLord in forum PHP Development
    Replies: 3
    Last Post: January 20th, 2004, 08:26 AM

IMN logo majestic logo threadwatch logo seochat tools logo