Re: [PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Chris
> > $to = "[EMAIL PROTECTED]"; > > $from = "[EMAIL PROTECTED]"; > > $subject = "This is a test!"; > > $body = "\tThis is a test email.\n"; > $body .= "That is all."; > > $headers = "From: ".$from."\r\n"; > $headers .= "Reply-To: ".$from."\r\n"; > $headers .= "X-Mailer: ".basename(__FILE__)

Re: [PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Stut
On 7 Jul 2008, at 18:50, Jay Moore wrote: Greetings folks. I seem to be having a problem with PHP's mail() function and sending 'From' headers properly. Here's my setup: I have a site I set up for a client that has a form their clients can fill out to submit some data. When the form is submi

Re: [PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Daniel Brown
On Mon, Jul 7, 2008 at 2:17 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > Yep! Just a note on this though. You have to control the domain > you're forcing the return-path on or else it will get rejected by a > lot of servers because of SPF rules. It has bit my company in the > behind quite a bi

Re: [PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 2:13 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Mon, Jul 7, 2008 at 1:50 PM, Jay Moore <[EMAIL PROTECTED]> wrote: >> Greetings folks. I seem to be having a problem with PHP's mail() function >> and sending 'From' headers properly. Here's my setup: >> > [snip!] >> >> I a

Re: [PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Daniel Brown
On Mon, Jul 7, 2008 at 1:50 PM, Jay Moore <[EMAIL PROTECTED]> wrote: > Greetings folks. I seem to be having a problem with PHP's mail() function > and sending 'From' headers properly. Here's my setup: > [snip!] > > I am getting bounce emails from certain ISPs (AOL, Roadrunner, some local > ISPs) sa

Re: [PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 2:06 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > You missed the period in your header to join the name and the line break?? > > 'From: [EMAIL PROTECTED]' . "\r\n" > On 7/7/08, Jay Moore <[EMAIL PROTECTED]> wrote: >> >> Greetings folks. I seem to be having a problem with PHP's

Re: [PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Daniel Brown
On Mon, Jul 7, 2008 at 2:06 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > You missed the period in your header to join the name and the line break?? That's not required, since the OP is using double quotes (translation will occur). -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. start

Re: [PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Dan Shirah
You missed the period in your header to join the name and the line break?? 'From: [EMAIL PROTECTED]' . "\r\n" On 7/7/08, Jay Moore <[EMAIL PROTECTED]> wrote: > > Greetings folks. I seem to be having a problem with PHP's mail() function > and sending 'From' headers properly. Here's my setup: > > I

[PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Jay Moore
**Apologies if this posts twice. I got some crazy response from the server after sending this the first time.** I have a site I set up for a client that has a form their clients can fill out to submit some data. When the form is submitted, I have PHP gather the data and create the body of an em

[PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Jay Moore
Greetings folks. I seem to be having a problem with PHP's mail() function and sending 'From' headers properly. Here's my setup: I have a site I set up for a client that has a form their clients can fill out to submit some data. When the form is submitted, I have PHP gather the data and create