From: Don S. <do...@se...> - 2003-02-19 17:44:24
|
Or core could instantiate the Mail::factory object upon core initialization. Although considering our memory conservation efforts perhaps we could just instantiate as needed and destroy after. Don. On Wed, 19 Feb 2003, Don Seiler wrote: > 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 > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > > > |