From: Don S. <do...@se...> - 2003-02-19 17:41:48
|
Thanks Dean for the cluestick. I did indeed need to change a setting that way. (See Dean's message below for details) Now here are my results: 1. Use php's mail() function: works after changing setting 2. Use pear's Mail with 'mail' factory: works after changing setting (duh) 3. Use pear's Mail with 'sendmail' factory: works after changing setting 4. Use pear's Mail with 'smtp' factory: always works Number 2 actually just is a wrapper for number 1 anyway. So I like the pear construct. However from a developer point of view I would think that the PHPWS core should have a "mail" type of thing to provide a core factory and a settings interface for the site admin to set which of the three types of factories that site should use and what params, if any, to set. So then the module would call something like: $GLOBALS["core"]->sendmail($to, $headers, $message) sendmail() would instantiate the Mail::factory object using the settings from the settings table and then call the send() function on that object. Let me know what you think. Don. On Wed, 19 Feb 2003, Dean Urmson wrote: > May be a config setting with your MTA (sendmail, qmail etc) that is > preventing the 'envelope from' header being set to anything but the user > owning the process that's sending the email. Kinda a relaying, anti-spam > measure I think. > > Vaguely remeber something about this a couple of years ago... > > HTH > > Dean > > > > |