[Wolves] Sent from

David Goodwin david at codepoets.co.uk
Fri Feb 8 14:24:12 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wayne wrote:
| Hi,
|
| When you use php/html/mysql to generate email, where is the email from
| address generated?
| It seems to be picking up my name from the httpd being set to run under
| my name, but the domain name does not seem
| to be from 'hostname' or the one set in httpd.conf
|
| Any ideas?
|
Hi,
Ideally, you should use e.g. Pear Mail or Zend_Mail; although you may
have problems getting these installed in a shared hosting environment.

To answer your question :

http://php.net/mail

- - Set an additional header - e.g. mail('bob at jangles.com', 'woof!', 'Dogs
like Squirrel pie!', array('From' => 'billg at microsoft.com'));


- --
David Goodwin

[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk       ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHrGXz/ISo3RF5V6YRAsVyAKCNjk4HHbHw/+Ir5ErkBSTyh1uakQCfYwdr
mmBDwbJEIKYU+IsxijIOyo0=
=m2bN
-----END PGP SIGNATURE-----



More information about the Wolves mailing list