sendmail woes
Jeff Schroeder
jeff at zingstudios.com
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
like:
mail("to at place.com", "subject", "message", "From: from at place.com");
Alternately, you could look at some of the PEAR::Mail functionality,
which includes some nice APIs.
http://pear.php.net/package/Mail
HTH,
Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20061214/0f82d644/attachment.bin
More information about the PLUG
mailing list