Date: 09/26/00
- Next message: James Turle: "[PHP] Hello... PHP not in HTML"
- Previous message: Ramender Kishore: "[PHP] Daemons: PHP way!"
- In reply to: Tecnico de Cherrytel: "[PHP] Calling c functions"
- Next in thread: David Robley: "Re: [PHP] mail() problem"
- Reply: David Robley: "Re: [PHP] mail() problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: James Turle: "[PHP] Hello... PHP not in HTML"
- Previous message: Ramender Kishore: "[PHP] Daemons: PHP way!"
- In reply to: Tecnico de Cherrytel: "[PHP] Calling c functions"
- Next in thread: David Robley: "Re: [PHP] mail() problem"
- Reply: David Robley: "Re: [PHP] mail() problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

