Current location: Hot Scripts Forums » Programming Languages » PHP » Mail header


Mail header

Reply
  #1 (permalink)  
Old 12-10-03, 01:35 AM
rigi2 rigi2 is offline
New Member
 
Join Date: Dec 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Mail header

I want to ask a simple technical question. Normally, php mail () function is written like this:

mail ($to, $subject, $message, $header, $from)

in order to send a mail.

I just want to know why in some email addresses I've sent they didn't received it. Is it the mail server who filters it? Am I locking an important header or something? any help will surely appreciated
Reply With Quote
  #2 (permalink)  
Old 12-10-03, 04:05 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
actually mail() has these paramters :
mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])

and $from is a header not a parameter, see example :
PHP Code:

mail("nobody@example.com""the subject"$message,

     
"From: webmaster@$SERVER_NAME\r\n"
    
."Reply-To: webmaster@$SERVER_NAME\r\n"
    
."X-Mailer: PHP/" phpversion()); 
all mail's header (FROM , REPLY-TO ... etc) are in the header section ..
refer to PHP manual for info about that additional parameters ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Announcement: Mojo Mail is now Dada Mail skazat General HotScripts Site Discussion 0 12-07-03 10:10 PM
mail function causes server error thewhiteshadow PHP 1 11-13-03 03:40 PM
EgroupWare mail modue quicklan PHP 2 11-05-03 09:00 AM
adding more variables to the mail() result spinicrus PHP 6 08-28-03 04:55 PM
Send email by ASP mail nghiapk ASP 1 07-09-03 12:47 AM


All times are GMT -5. The time now is 06:11 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.