Re: [PHP] I have a problem with nobody! SOLVED!
On Sun, 2007-06-17 at 12:56 +0100, Stut wrote: > tedd wrote: > > > > $headers ='From: "Larry, Curly and Moe"<[EMAIL PROTECTED]>')>\n"; > > $headers .= 'Reply-to: "Moe"<[EMAIL PROTECTED]>' >\n"; > > Strictly speaking, those line endings should be \r\n. While I agree with you that it "should" be \r\n, I've found I get more consistent results when I use just \n and things get borked when I use \r\n. I'm using postfix, maybe it's buggy :| Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I have a problem with nobody! SOLVED!
tedd wrote: >> The last paragraph of the page >> >> Go figure! >> >> The appropriate code is; >> >> mail ($to, $subject, $message, $header = 'From: "Larry, Curly and Moe" >> <[EMAIL PROTECTED]>'); > > Brad: > > Don't forget to add the content. > > mail($to, $subject, $headers, $body); Headers and body should be the other way around. > And you can also add "Reply-to: " > > Such as: > > $headers ='From: "Larry, Curly and Moe"<[EMAIL PROTECTED]>')>\n"; > $headers .= 'Reply-to: "Moe"<[EMAIL PROTECTED]>' >\n"; Strictly speaking, those line endings should be \r\n. > And, IF you are permitted to use the fifth parameter: > > $extra = "-f" . $fromAddress; > > mail($to, $subject, $headers, $body, $extra); > > or > > ini_set('sendmail_from', '[EMAIL PROTECTED]'); > mail($to, $subject, $headers, $body); AFAIK, the sendmail_from setting only has an effect when running on Win32. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] I have a problem with nobody! SOLVED!
The last paragraph of the page Go figure! The appropriate code is; mail ($to, $subject, $message, $header = 'From: "Larry, Curly and Moe" <[EMAIL PROTECTED]>'); Brad: Don't forget to add the content. mail($to, $subject, $headers, $body); And you can also add "Reply-to: " Such as: $headers ='From: "Larry, Curly and Moe"<[EMAIL PROTECTED]>')>\n"; $headers .= 'Reply-to: "Moe"<[EMAIL PROTECTED]>' >\n"; And, IF you are permitted to use the fifth parameter: $extra = "-f" . $fromAddress; mail($to, $subject, $headers, $body, $extra); or ini_set('sendmail_from', '[EMAIL PROTECTED]'); mail($to, $subject, $headers, $body); Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I have a problem with nobody! SOLVED!
BSumrall wrote: > The last paragraph of the page > > Go figure! > > The appropriate code is; > > mail ($to, $subject, $message, $header = 'From: "Larry, Curly and Moe" > <[EMAIL PROTECTED]>'); The final parameter is important and should also be included. It sets the envelope sender which is the address the email will get bounced to if necessary. -Stut > -Original Message- > From: BSumrall [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 17, 2007 12:39 AM > To: php-general@lists.php.net > Subject: RE: [PHP] I have a problem with nobody! > > Let's take it one step further for arguments sake. > > What is I wanted to change "nobody" as the sender to, let's just say Larry > or Curly, or Moe? > Making message header as; > Larry Shmuckatelli [EMAIL PROTECTED] > Or > Curly Shmuckatelli [EMAIL PROTECTED] > Or > Moe Shmuckatelli [EMAIL PROTECTED] > > What is the php driving force that controls the "who sent me" function? > > -Original Message- > From: BSumrall [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 17, 2007 12:31 AM > To: php-general@lists.php.net > Subject: RE: [PHP] I have a problem with nobody! > > Well, I am now 1 step closer > > The php file do nor reference the importance of "having no spaces" between > the -f and email address. > [EMAIL PROTECTED] is key! > > But, still can't get rid of nobody. > > How do I make nobody disappear? > > Here is my message header now. > > Nobody [EMAIL PROTECTED] > > Using: > > mail ($to, $subject, $message, $header, > '[EMAIL PROTECTED]'); > > -Original Message- > From: BSumrall [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 17, 2007 12:19 AM > To: 'Stut' > Cc: php-general@lists.php.net > Subject: RE: [PHP] I have a problem with nobody! > > PS > mail ($to, $subject, $message, $header, '-f > [EMAIL PROTECTED]'); > > doesn't work either. > > Still have nobody to deal with. > As per being RFC compliant! > > -Original Message- > From: Stut [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 17, 2007 12:15 AM > To: BSumrall > Cc: php-general@lists.php.net > Subject: Re: [PHP] I have a problem with nobody! > > BSumrall wrote: >> I have read about a -f function. >> I tried >> mail ($to, $subject, $message, -f$header); >> mail -f($to, $subject, $message, $header); >> >> both result in parse error. > > Boy did you not read the documentation carefully! > > mail($to, $subject, $message, $headers, '[EMAIL PROTECTED]'); > > Go back and read http://php.net/function.mail properly. > > -Stut > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] I have a problem with nobody! SOLVED!
The last paragraph of the page Go figure! The appropriate code is; mail ($to, $subject, $message, $header = 'From: "Larry, Curly and Moe" <[EMAIL PROTECTED]>'); -Original Message- From: BSumrall [mailto:[EMAIL PROTECTED] Sent: Sunday, June 17, 2007 12:39 AM To: php-general@lists.php.net Subject: RE: [PHP] I have a problem with nobody! Let's take it one step further for arguments sake. What is I wanted to change "nobody" as the sender to, let's just say Larry or Curly, or Moe? Making message header as; Larry Shmuckatelli [EMAIL PROTECTED] Or Curly Shmuckatelli [EMAIL PROTECTED] Or Moe Shmuckatelli [EMAIL PROTECTED] What is the php driving force that controls the "who sent me" function? -Original Message- From: BSumrall [mailto:[EMAIL PROTECTED] Sent: Sunday, June 17, 2007 12:31 AM To: php-general@lists.php.net Subject: RE: [PHP] I have a problem with nobody! Well, I am now 1 step closer The php file do nor reference the importance of "having no spaces" between the -f and email address. [EMAIL PROTECTED] is key! But, still can't get rid of nobody. How do I make nobody disappear? Here is my message header now. Nobody [EMAIL PROTECTED] Using: mail ($to, $subject, $message, $header, '[EMAIL PROTECTED]'); -Original Message- From: BSumrall [mailto:[EMAIL PROTECTED] Sent: Sunday, June 17, 2007 12:19 AM To: 'Stut' Cc: php-general@lists.php.net Subject: RE: [PHP] I have a problem with nobody! PS mail ($to, $subject, $message, $header, '-f [EMAIL PROTECTED]'); doesn't work either. Still have nobody to deal with. As per being RFC compliant! -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Sunday, June 17, 2007 12:15 AM To: BSumrall Cc: php-general@lists.php.net Subject: Re: [PHP] I have a problem with nobody! BSumrall wrote: > I have read about a -f function. > I tried > mail ($to, $subject, $message, -f$header); > mail -f($to, $subject, $message, $header); > > both result in parse error. Boy did you not read the documentation carefully! mail($to, $subject, $message, $headers, '[EMAIL PROTECTED]'); Go back and read http://php.net/function.mail properly. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php