[PHP] PHP Mail() Problem

2001-08-14 Thread Mahmoud Kassem

When I send an email using mail() I can the emails from nobody (using
outlook) and in some programs like AOL from Unknown and in Web Based Emails
like Yahoo I get it Correct and in Outlook Express also correct

How can I fix this problem ?

After some tests I found out

Nobody nobody@servername on behalf of myemail appears in
Outlook

Unknown@unknownserver appears in
AOL

My email appears correctly in

Hotmail
Yahoo
Outlook Express
and some others Web Based Clients ..


The headers I rec. is :







Return-Path: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Test for Mail Function from AOL
From: [EMAIL PROTECTED]
Message-Id: [EMAIL PROTECTED]
Sender: Nobody [EMAIL PROTECTED]
Date: Tue, 14 Aug 2001 20:49:48 -0400
X-AntiAbuse: This header was added to track abuse, please include it with
any abuse report
X-AntiAbuse: Primary Hostname - host14.hrwebservices.net
X-AntiAbuse: Original Domain - abkareno.com
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [99 99]
X-AntiAbuse: Sender Address Domain - host14.hrwebservices.net




How can I fix this problem ?




RE: [PHP] Mail()

2001-08-13 Thread Mahmoud Kassem

I have the arrows
my code is :

$headers .= Return-Path: [EMAIL PROTECTED]\n;
$headers .= Errors-To: [EMAIL PROTECTED]\n;
$headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n;
$headers .= From: \.$fname. .$lname.\ .$emailfrom.\n;
$headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n;
$headers .= Content-Type: text/html; charset=iso-8859-1\n;
$headers .= X-Mailer: Abkareno\n;
$headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n;
if ($prom == 1) {
$headers .= X-Priority: 2\n;
$headers .= Importance: High\n\n;

mail($emailto_owner..$emailto.,$subject,$message,$headers);


and still I get the email from NO BODY [EMAIL PROTECTED]
-Original Message-
From: ReDucTor [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 9:25 AM
To: Mahmoud Kassem; [EMAIL PROTECTED]
Subject: Re: [PHP] Mail()


From : Your Name [EMAIL PROTECTED]

make sure you have the arrow things around it...

thats in your headers...
- Original Message - 
From: Mahmoud Kassem [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 4:20 PM
Subject: [PHP] Mail()


 How can force my From: instead of the nobody@servername ?
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Mail()

2001-08-13 Thread Mahmoud Kassem

THe same .. did not make a difference ..

for php.ini settings : I am on a virtual hosting .. so I do not have access
to the php.ini file

-Original Message-
From: karthik [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 9:43 AM
To: Mahmoud Kassem
Subject: Re: [PHP] Mail()


Hi

Try

mail($emailto_owner..$emailto.,$subject,$message,$headers);

It worked for me when i had a similar problem. And do check the settings in
php.ini for mails.

Karthik.
- Original Message -
From: Mahmoud Kassem [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 12:04 PM
Subject: RE: [PHP] Mail()


 I have the arrows
 my code is :

 $headers .= Return-Path: [EMAIL PROTECTED]\n;
 $headers .= Errors-To: [EMAIL PROTECTED]\n;
 $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n;
 $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n;
 $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n;
 $headers .= Content-Type: text/html; charset=iso-8859-1\n;
 $headers .= X-Mailer: Abkareno\n;
 $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n;
 if ($prom == 1) {
 $headers .= X-Priority: 2\n;
 $headers .= Importance: High\n\n;

 mail($emailto_owner..$emailto.,$subject,$message,$headers);


 and still I get the email from NO BODY [EMAIL PROTECTED]
 -Original Message-
 From: ReDucTor [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 13, 2001 9:25 AM
 To: Mahmoud Kassem; [EMAIL PROTECTED]
 Subject: Re: [PHP] Mail()


 From : Your Name [EMAIL PROTECTED]

 make sure you have the arrow things around it...

 thats in your headers...
 - Original Message -
 From: Mahmoud Kassem [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, August 13, 2001 4:20 PM
 Subject: [PHP] Mail()


  How can force my From: instead of the nobody@servername ?
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Mail()

2001-08-13 Thread Mahmoud Kassem

I said before I do not have access to the php.ini
I am on a virtual Hosting ...

-Original Message-
From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 4:43 PM
To: Mahmoud Kassem; ReDucTor
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail()


your MTA is setting the envelope, not your script.

if you are using sendmail, look at the -f flag in the man 
sendmail page.  then modify your php.ini file.  Or possibly 
even set the variable (sendmail_path) inside of your script 
to include the -f flag.

-Original Message-
From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 1:34 AM
To: ReDucTor
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail()


I have the arrows
my code is :

$headers .= Return-Path: [EMAIL PROTECTED]\n;
$headers .= Errors-To: [EMAIL PROTECTED]\n;
$headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n;
$headers .= From: \.$fname. .$lname.\ .$emailfrom.\n;
$headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n;
$headers .= Content-Type: text/html; charset=iso-8859-1\n;
$headers .= X-Mailer: Abkareno\n;
$headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n;
if ($prom == 1) {
$headers .= X-Priority: 2\n;
$headers .= Importance: High\n\n;

mail($emailto_owner..$emailto.,$subject,$message,$headers);


and still I get the email from NO BODY [EMAIL PROTECTED]
-Original Message-
From: ReDucTor [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 9:25 AM
To: Mahmoud Kassem; [EMAIL PROTECTED]
Subject: Re: [PHP] Mail()


From : Your Name [EMAIL PROTECTED]

make sure you have the arrow things around it...

thats in your headers...
- Original Message - 
From: Mahmoud Kassem [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 4:20 PM
Subject: [PHP] Mail()


 How can force my From: instead of the nobody@servername ?
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Mail()

2001-08-13 Thread Mahmoud Kassem

I tried using the ini_set() but did not affect ..
Can you tell me the commands I should use?

- for the .htaccess : I only few knowledge about using .htaccess, so can you
tell me what to write in the
.htaccess file ?

Thanks
Mahmoud

-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 12:03 PM
To: 'Mahmoud Kassem'; karthik
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail()


Try using .htaccess or ini_set() - perhaps this will help you when on shared
server.

regards,
Maxim Maletsky



-Original Message-
From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 4:12 PM
To: karthik
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail()


THe same .. did not make a difference ..

for php.ini settings : I am on a virtual hosting .. so I do not have access
to the php.ini file

-Original Message-
From: karthik [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 9:43 AM
To: Mahmoud Kassem
Subject: Re: [PHP] Mail()


Hi

Try

mail($emailto_owner..$emailto.,$subject,$message,$headers);

It worked for me when i had a similar problem. And do check the settings in
php.ini for mails.

Karthik.
- Original Message -
From: Mahmoud Kassem [EMAIL PROTECTED]
To: ReDucTor [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 12:04 PM
Subject: RE: [PHP] Mail()


 I have the arrows
 my code is :

 $headers .= Return-Path: [EMAIL PROTECTED]\n;
 $headers .= Errors-To: [EMAIL PROTECTED]\n;
 $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n;
 $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n;
 $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n;
 $headers .= Content-Type: text/html; charset=iso-8859-1\n;
 $headers .= X-Mailer: Abkareno\n;
 $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n;
 if ($prom == 1) {
 $headers .= X-Priority: 2\n;
 $headers .= Importance: High\n\n;

 mail($emailto_owner..$emailto.,$subject,$message,$headers);


 and still I get the email from NO BODY [EMAIL PROTECTED]
 -Original Message-
 From: ReDucTor [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 13, 2001 9:25 AM
 To: Mahmoud Kassem; [EMAIL PROTECTED]
 Subject: Re: [PHP] Mail()


 From : Your Name [EMAIL PROTECTED]

 make sure you have the arrow things around it...

 thats in your headers...
 - Original Message -
 From: Mahmoud Kassem [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, August 13, 2001 4:20 PM
 Subject: [PHP] Mail()


  How can force my From: instead of the nobody@servername ?
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Mail()

2001-08-13 Thread Mahmoud Kassem

Sorry ..

I read the doc. and I tried sendmail_from and _path but did not affect
also I tried to use a seperate function (directly through Sendmail) but did
not work (I did not get any emails)



-Original Message-
From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 6:12 PM
To: Mahmoud Kassem
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail()


rather than be rude about it, try reading the whole message and
then looking through the PHP documentation.


http://www.php.net/manual/en/function.ini-set.php
===
ini_set
(PHP 4 = 4.0RC1)

ini_set -- Set the value of a configuration option
Description

string ini_set (string varname, string newvalue)


Sets the value of the given configuration option. Returns the
old value on success, FALSE on failure. The configuration option
will keep this new value during the script's execution, and will
be restored at the script's ending.

Not all the available options can be changed using ini_set().
Below is a table with a list of all PHP options (as of PHP
4.0.5-dev), indicating which ones can be changed/set and at what
level.
===

-Original Message-
From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 9:40 AM
To: Michael Geier, CDM Systems Admin
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail()


I said before I do not have access to the php.ini
I am on a virtual Hosting ...

-Original Message-
From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 4:43 PM
To: Mahmoud Kassem; ReDucTor
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail()


your MTA is setting the envelope, not your script.

if you are using sendmail, look at the -f flag in the man
sendmail page.  then modify your php.ini file.  Or possibly
even set the variable (sendmail_path) inside of your script
to include the -f flag.

-Original Message-
From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 1:34 AM
To: ReDucTor
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail()


I have the arrows
my code is :

$headers .= Return-Path: [EMAIL PROTECTED]\n;
$headers .= Errors-To: [EMAIL PROTECTED]\n;
$headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n;
$headers .= From: \.$fname. .$lname.\ .$emailfrom.\n;
$headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n;
$headers .= Content-Type: text/html; charset=iso-8859-1\n;
$headers .= X-Mailer: Abkareno\n;
$headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n;
if ($prom == 1) {
$headers .= X-Priority: 2\n;
$headers .= Importance: High\n\n;

mail($emailto_owner..$emailto.,$subject,$message,$headers);


and still I get the email from NO BODY [EMAIL PROTECTED]
-Original Message-
From: ReDucTor [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 9:25 AM
To: Mahmoud Kassem; [EMAIL PROTECTED]
Subject: Re: [PHP] Mail()


From : Your Name [EMAIL PROTECTED]

make sure you have the arrow things around it...

thats in your headers...
- Original Message -
From: Mahmoud Kassem [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 4:20 PM
Subject: [PHP] Mail()


 How can force my From: instead of the nobody@servername ?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Mail()

2001-08-12 Thread Mahmoud Kassem

How can force my From: instead of the nobody@servername ?