traq;11029843 wrote:...which is as it should be, since that it the email address the email is "From."
What are you trying to accomplish? Why do you need to change the "from" address?
Whether I use gmail's smtp or not, is it possible to edit the "from address" to my choosing? In hindsight I guess this sounds suspicious, but I am reading "Head First PHP" and in the first chapters, they're making an emailing script where a client fills out a form with his email address being one of the data, and the form's data will be sent to my email address.
So the email should be structured with the client's email address as the "from address", the content in the subject and body, and the whole email being sent to me. But since the script's smtp is set up with gmail, the "from address" is set up as my own email address. It's not a big deal but I'm just wondering whether a solution exists, possibly with gmail, mercury, whatever, etc.