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 > > > > |
From: Don S. <do...@se...> - 2003-02-19 20:50:32
|
On my gentoo box I use the "dummy" ssmtp setup. My /etc/ssmtp/ssmtp.conf has this line: # Set this to never rewrite the "From:" line (unless not given) and to # use that address in the "from line" of the envelope. FromLineOverride=YES I just had to uncomment that line. It defaults to NO I assume. Don. On Wed, 19 Feb 2003, Dean Urmson wrote: > > Thanks Dean for the cluestick. I did indeed need to change a > > setting that > > way. (See Dean's message below for details) > > Oops! sorry for not posting the original reply to the list, kinda did it in > a hurry hence the bad spelling (:o) > > Just out of interest Don, what was the setting? > > TIA > > Dean > > > > > |
From: spiggy t. <th...@me...> - 2003-02-19 21:15:10
|
first of all, i know what php.net says about apache 2: unsupported, not recommended, etc. BUT is someone actually running apache 2 on a production server? or a test one? i have apache 2 running with ssl and all seems peachy. id love to switch so if anyone has a horror story (or a happy one), this would be the time to share it :) you can email straight to me as this is OT. phpws 0.9 works fine btw. php is 4.3.2dev. spiggy |
From: Don S. <do...@se...> - 2003-02-19 21:18:10
|
I run apache2 on my box at work. I was running RC3 just fine. I was going to install recent CVS and see how that goes. This is my desktop machine at work that I play with, not a production server or anything. Don. On Wed, 19 Feb 2003, spiggy thecat wrote: > first of all, i know what php.net says about apache 2: unsupported, not > recommended, etc. > > BUT is someone actually running apache 2 on a production server? or a > test one? i have apache 2 running with ssl and all seems peachy. id > love to switch so if anyone has a horror story (or a happy one), this > would be the time to share it :) you can email straight to me as this > is OT. > > phpws 0.9 works fine btw. php is 4.3.2dev. > > spiggy > > > > ------------------------------------------------------- > 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 > > > |
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 > > > |