[PHP] mail() problem From: AJDIN BRANDIC (abrandic <email protected>)
Date: 09/26/00

Hi,
I am using mail function which sends an email to a client who then
processes the body part. The body message should be of a specific format
(one line with no blanck lines before or after it, and no white spaces
before it). My message adds one (perhaps two) blank lines at the top of
the message and I don't know why. Has anyone had a same problem before.
The code is:

$email = "me <email protected>";
        $mailsubject = "CALL ME";
        $mailheaders = "From: us <email protected>\n";
        $mailheaders .= "Cc: david <email protected>\n";
        $mailheaders .= "Bcc: \n";
        $mailheaders .= "Reply-To: someone <email protected>\n";
        $mailheaders .= "X-Mailer: PHP3 Mail Function on Apache/BSD\n";
        $msg="REQUEST:$somevar:$anothervar";

        //Send the mail
            if (mail($email,$mailsubject,$msg,$mailheaders)) {

            }
             else {
                print("Error: The message could not be sent.\n");
            }

Thanks,

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>