Mail Function Not Working

Alice Wei <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>





Hi, 

I have an issue here where I see no PHP errors on my mail 
function usage, and yet I am not getting the mail in the desired 
account. Here is what I have for my PHP code:

$headers = "From: [email protected]" ;
$to =  $email;
$subject = 
"Comments Regarding My Site";
$body = "From: $your_name\n E-Mail: 
$email\n Reason Contact: $question\n Comments:\n $comments";
mail($to,
 $subject, $body,$headers);

This is what I have in my PHP.ini:

[mail
 function]
; For Win32 only.
SMTP = smtp.live.com
smtp_port = 
587

; For Win32 only.
sendmail_from = [email protected]

;
 For Unix only.  You may supply arguments as well (default: "sendmail -t
 -i").
;sendmail_path =

; Force the addition of the specified 
parameters to be passed as extra parameters
; to the sendmail binary.
 These parameters will always replace the value of
; the 5th 
parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

Yet, I don't see any mail in the mail box with the address $email is at. Can anyone on the list please give me 
some pointers on what I may have done wrong here? 

Thanks for your help.
Alice
 
		 	   		   		 	   		  
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.