Sending emails, with a "from" field
Posted on 2006-05-26
i am using the following code:
mail( $this->to, $this->subject, $this->message, "email@example.com")
or print "could not send email";
unfortuantely the "from field deos not work, it just indicates on the recipients email the name of my host...
I want it to use the email address I have passed to it.
In an example I saw ages ago, but have since been unable to find, it seemed to alter the headers or something, but all the examples I have since found only use the example I show above....