On Tue, 19 Jun 2001, Jason Murray wrote:
> Hi tim,
>
> Change this:
>
> > mail($toaddress, $subject, $mailcontent, $fromaddress);
>
> mail ($toaddress, $subject, $mailcontent,
> "From: Real Name <$fromaddress>\nReply-to: $fromaddress\n");
Yeah, notice where you'll be adding various mail headers in there. The
fourth argument in mail() is termed : additional_headers As you now
know, 'From' is such a header. As are 'Reply-to' 'cc' and 'bcc' ...
"From: [EMAIL PROTECTED]\ncc: [EMAIL PROTECTED]\nbcc: [EMAIL PROTECTED]"
More examples in manual and rfc :
http://www.php.net/manual/function.mail.php
http://www.faqs.org/rfcs/rfc822.html
http://www.faqs.org/rfcs/rfc2076.html
> > I've spoken to the hosting company, they say they will not provide any
> > assistance to PHP script related problems. They are running on Solaris
> > servers with PHP 3.0.16.
>
> 1) Get a new hosting service, since they seem uninterested in your
> continued business.
I mostly agree with the web host, they can't be *expected* to answer php
syntax questions, that's why php-general exists :-)
> 2) Tell them to use a PHP that was built *after* the fall of the Roman
> Empire. 3.0.16 is old. It's not even the last PHP3 build. (And if they
> say its hard, well gee, we have PHP4.0.5 running on Solaris).
Yeah, you'll find many more functions and "stuff" available within the
newer releases of PHP4, may as well make a request and discuss it with
them. And see their reasonings. Then tell them yours :-)
Regards,
Philip