sendmail woes

Jeff Schroeder jeff at
Thu Dec 14 16:04:34 MST 2006

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 

mail("to at", "subject", "message", "From: from at");

Alternately, you could look at some of the PEAR::Mail functionality, 
which includes some nice APIs.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 

More information about the PLUG mailing list