RE: [PHP] email forms
| From: | Philip Olson | Date: | Tue, 19 Jun 2001 16:46:57 +0000 |
| Subject: | RE: [PHP] email forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54394@lists.php.net to get a copy of this message | ||
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: me@example.com\ncc: cc@example.com\nbcc: secret@example.com"
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