I haven't used php to send mail yet and have some questions.
I see that you can add headers, and these days it is essential to have a
real "from".
But I see you can also do this:
mail('nobody@ex ample.com', 'the subject', 'the message', null,
'-fwebmaster@exam ple.com');
Does that only work with sendmail and how can you tell what the MTA
(is that right) is?
Also, how would you include a BCC or Reply To with that?
On a related note, what's with CR LF I see in the examples. I see there
are some issues with the CR, can I simple do this?:
$header=<<<'thi sdata'
From: some_from
BCC: some blind copy
thisdata;
and expect that to work?
Jeff
I see that you can add headers, and these days it is essential to have a
real "from".
But I see you can also do this:
mail('nobody@ex ample.com', 'the subject', 'the message', null,
'-fwebmaster@exam ple.com');
Does that only work with sendmail and how can you tell what the MTA
(is that right) is?
Also, how would you include a BCC or Reply To with that?
On a related note, what's with CR LF I see in the examples. I see there
are some issues with the CR, can I simple do this?:
$header=<<<'thi sdata'
From: some_from
BCC: some blind copy
thisdata;
and expect that to work?
Jeff
Comment