PDA

View Full Version : PHP -newbie


hawkman
01-12-2000, 09:35 AM
Hello,

I have started to look into the magics of PHP :)

I'm going to make a formhandler and I have a question:
Can I specify the sender's address as from-address in the mail that the form generates? Now I get "anonymous@six.futurequest.net" as sender...

Regards

Hakan Ahlberg<!-- NO_AUTO_LINK -->

Justin
01-12-2000, 12:23 PM
Reference: http://www.php.net/manual/function.mail.php3

You can add headers to the mail - for example:
</font><font face="Courier" size="3">
mail (
[nbsp][nbsp] &quot;Justin Nelson <justin@vdj.net>&quot;,
[nbsp][nbsp] &quot;Thanks for filling out our form!&quot;,
[nbsp][nbsp] &quot;This is simply a message to blah blah blah.&quot;,
[nbsp][nbsp] &quot;From: Host Facts <info@hostfacts.com>\nReply-To: Information <info@hostfacts.com>\nX-Mailer: HF::MailForm&quot;
);
</font><font face="Verdana, Arial" size="2">
As you can see, you can add any headers you like, including From, Reply-To, X-Mailer, Return-Path, and so on.

Hope this helps.

------------------
Justin Nelson
FutureQuest Support