Daniel wrote: > I am using my webserver to send mail using php's mail function which > calls sendmail. Some mail is coming back undeliverable because the > sender address is invalid.
You need to insert a "From:" line in the mail headers. That's the
fourth parameter of the mail() function. Thus, you'd do something
like:
mail("[EMAIL PROTECTED]", "subject", "message", "From: [EMAIL PROTECTED]");
Alternately, you could look at some of the PEAR::Mail functionality,
which includes some nice APIs.
http://pear.php.net/package/Mail
HTH,
Jeff
pgpKA4GfMEcPX.pgp
Description: PGP signature
/* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
