Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 01:50 am EST

Geeklog Forums

Mail vs Pear


Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Hi
I need some help with understanding how this works.
GL now uses Pear, it is possible, if Pear is not installed, that GL uses "own" Pear files. This is stated in config.php. (default is $_CONF['have_pear'] = false;
I know that my ISP switched off PHP mail(). Is it possible that 'smtp' option also doesn't work? Can I check the PEAR configuration?

On the other hand when I e.g. log into my account (SSH) I can send mails from the server with PINE.

Sorry for a silly question but if someone would explain this to me I'd be much obliged.

Geeklog Polish Support Team
 Quote

Status: offline

Tony

Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
No, I'm confident the SMTP features work. First a clarification. What you set $_CONF['have_pear'] to depends on your setup. If your host installed PHP with PEAR (the default) then you simply need to confirm that the PEAR directory is in the include_path of php.ini. To test this out on a linux host simptly type "pear config-show" and if you get output showing the PEAR configuration then you are OK. If you get something like "no such file or directory" then odds are PEAR wasn't installed. If the pear command gives you the configuration output then set $_CONF['have_pear'] = true. If either of those turn out to be not true (or you are unsure) then you should set $_CONF['have_pear'] to false and grab the appropriate PEAR files down and include them in your Geeklog installation.

After you have all that, you should be able to set the SMTP options for PEAR::Mail in config.php and have it work.
The reason people blame things on previous generations is that there's only one other choice.
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Thanks a lot Tony for explaining this to me. I'll try that asap.
Geeklog Polish Support Team
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
I'm back
I tried pear config-show
got this
bash: pear: command not found
Then after setting pear 2 true in config.php
got this
Text Formatted Code
Warning: com_mail(): SAFE MODE Restriction in effect. The script whose uid is 42275 is not allowed to access /opt/lib/php/Mail.php owned by uid 0 in /amerykanistyka/lib-common.php on line 3189

Warning: com_mail(Mail.php): failed to open stream: No such file or directory in /amerykanistyka/lib-common.php on line 3189

Warning: com_mail(): Failed opening 'Mail.php' for inclusion (include_path='.:/opt/lib/php') in /amerykanistyka/lib-common.php on line 3189

Warning: com_mail(): SAFE MODE Restriction in effect. The script whose uid is 42275 is not allowed to access /opt/lib/php/Mail/RFC822.php owned by uid 0 in /amerykanistyka/lib-common.php on line 3190

Warning: com_mail(Mail/RFC822.php): failed to open stream: No such file or directory in /amerykanistyka/lib-common.php on line 3190

Warning: com_mail(): Failed opening 'Mail/RFC822.php' for inclusion (include_path='.:/opt/lib/php') in /amerykanistyka/lib-common.php on line 3190

Fatal error: Undefined class name 'mail' in /amerykanistyka/lib-common.php on line 3198
 


I corrected paths (written full paths) in lines 3189 and 3190
got this

Text Formatted Code
Fatal error: Call to undefined function: send() in /amerykanistyka/lib-common.php on line 3256
 


I enabled custom_mail in lib-custom.php
got this

Text Formatted Code
Warning: mail() has been disabled for security reasons in /amerykanistyka/system/lib-custom.php on line 384
 


I disabled custom_mail in lib-custom.php, tried to send mail got nothing I sat down and howl.

Does the above make any sense? There is no sign of errors in error.log
Geeklog Polish Support Team
 Quote

All times are EST. The time is now 01:50 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content