Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 10:31 am EST

Geeklog Forums

Email install help for 1.3.11sr1


Status: offline

jollymoon

Forum User
Junior
Registered: 09/08/05
Posts: 21
H E L P

I have tried all the combinations I can think of for the new 1.3.11sr in setting the mail : sendmail : smtp options and nothing will email new users. I even set the parameters in the php.ini file....

Everything works perfectly except the email . I am the only one that can log on or log off...

I thought it was a PEAR problem and in fooling around with it I got this error:

Warning: com_isemail(Mail/RFC822.php): failed to open stream: No such file or directory in /www/a/atlantadownt/htdocs/lib-common.php on line 3394

Fatal error: com_isemail(): Failed opening required 'Mail/RFC822.php' (include_path='.:/usr/local/lib/php') in /www/a/atlantadownt/htdocs/lib-common.php on line 3394

all other times I get a window that says "you shall be notified" etc. but no emails go anywhere.

What could it be? I really need some other answers or places to look

Thanx !
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It's hard to give any specific advise since you didn't say which options worked and which didn't ...

Keep in mind that when email is sent out, it could still be caught in a spam filter somewhere. So try to send emails to an account where you have control over the filters.

The PEAR errors depend on whether you use the PEAR packages that ship with Geeklog ('have_pear' = false) or those installed on your webserver ('have_pear' = true).

I assume you're aware of the FAQ entry, Configuring email (Geeklog 1.3.9 and newer versions)

bye, Dirk
 Quote

Status: offline

jollymoon

Forum User
Junior
Registered: 09/08/05
Posts: 21
the above error msg occurs when I set PEAR to TRUE:

PEAR at FALSE doesn't do anything i.e. no emails.

I tried backend= "mail" and it didn't work...i.e. NO emails at all

I tried backend ="sendmail" and it didn't work...ditto
'sendmail_path' => '/usr/sbin/sendmail', "info from ISP"
'sendmail_args' => '',

I tried backend ="smtp" and it didn't work...ditto
'host' => 'smtp.atlantadowntownministry.com', "my smtp"
'port' => '587', "reported to me by ISP"
'auth' => true, "I even tried this one at FALSE"
'username' => 'username for website access at ISP',
'password' => 'password for webiste access at ISP'

I even tried to set the smtp parameters in the php.ini
[mail function]
; For Win32 only.
SMTP = smtp.atlantadowntownministry.com

; For Win32 only.
sendmail_from = webmaster@atlantadowntownministry.com
and NO emails.

Everything else works perfectly, I even tried switching themes and got the same NOGO so I don't think it is a themes related issue.

The above error msg is the ONLY response I get from anything I have tried and I checked the error logs NADA....

Also, I have no known filters on my emails

Could there be another parameter in the php.ini that I need to look at?

I even looked at the configs from another of my websites running GeekLog 1.3.8 and all works fine, but this webpage is parked on a different ISP

Must be missing a comma somewhere or a path????

HELP
 Quote

Status: offline

jollymoon

Forum User
Junior
Registered: 09/08/05
Posts: 21
Weird...
I read throught the PHP manual mail link PHP Mail and came accross this script. Under andrew jun/05

It WORKS.... It sends me a message almost immediately to webmaster@atlantadowntownministry.com

Any way to marry this to the config.php or the php.ini I currently have in order to make MAIL work????

[insert php basic header that is stripped out]

$to = 'webmaster@atlantadowntownministry.com' ;
$subject = "smtp testing.";
$message = "Hi, there. I can't believe this works ! ";
mail($to, $subject, $message);
?>

I called it mailout.php and u/l'd to my server and it worked. I got a blank screen on the webpage, but I got sent an email.

help how can I FIX this??
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
When you select 'backend' => 'mail', it will call the PHP mail function in the end. So I have to wonder why that "script" would work while using Geeklog's way doesn't (again, I suspect a spam filter or something like that may be involved here).

As the FAQ explains, you can implement your own function to send emails. Did you try the "fourth way" mentioned in that FAQ entry? It also does a plain "mail" call ...

bye, Dirk
 Quote

Status: offline

jollymoon

Forum User
Junior
Registered: 09/08/05
Posts: 21
thanx for helping DIRK !!

haven't tried the 4th method yet, one more try for the easy way

the email a friend works with this setup but NOT new users...

register_globals=on

[config.php]
$_CONF['have_pear'] = false;
$_CONF['mail_settings'] = array (
'backend' => 'sendmail', // can be one of 'mail', 'sendmail', 'smtp'

[lib-common.php]

function COM_isEmail( $email )
{
require_once( '/www/a/atlantadownt/config/system/pear/Mail/RFC822.php' );

$rfc822 = new Mail_RFC822;

return( $rfc822->isValidInetAddress( $email ) ? true : false );
}


function COM_mail( $to, $subject, $message, $from = 'webmaster@atlantadowntownministry.com', $html = false, $priority = 0 )
{
global $_CONF, $LANG_CHARSET;

static $mailobj;

if( function_exists( 'CUSTOM_mail' ))
{
return CUSTOM_mail( $to, $subject, $message, $from, $html, $priority );
}

include_once( '/www/a/atlantadownt/config/system/pear/Mail.php' );
include_once( '/www/a/atlantadownt/config/system/pear/Mail/RFC822.php' );

$method = $_CONF['mail_settings']['backend'];

if( !isset( $mailobj ))
{
if(( $method == 'sendmail' ) || ( $method == 'smtp' ))
{
$mailobj =& Mail::factory( $method, $_CONF['mail_settings'] );
}
else
{
$method = 'mail';
$mailobj =& Mail::factory( $method );
}

notice I had to put the actual email address and the exact PEAR path...

I don't understand why the "mail a story" works but not the new user.

If none of this works you'll have to step me through the CUSTOM settings in the php.ini

THANX!
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
Quote by jollymoon:
I tried backend ="smtp" and it didn't work...ditto
'host' => 'smtp.atlantadowntownministry.com', "my smtp"
'port' => '587', "reported to me by ISP"
'auth' => true, "I even tried this one at FALSE"
'username' => 'username for website access at ISP',
'password' => 'password for webiste access at ISP'
you should know that the username and password here refer to your smtp account's username and password and not your website access username and password--unless they are the same of course.

and I'm sure you didn't miss this, but no harm in checking: did you properly define an email address for $_CONF['site_mail']?

and one more: if using sendmail, did you double-check that path?
if not, then use phpinfo() or ini_get('sendmail_path')..
 Quote

Status: offline

jollymoon

Forum User
Junior
Registered: 09/08/05
Posts: 21
I gave up! Banging your head

I did a complete install of 1.3.9 and erased 1.3.11

1.3.9 installed and works flawlessly. Go Figure? ! The new user email/notification works as well as the 'mail to a friend' button.

I didn't have to change anything in the default setup for config.php except the same paths as the 1.3.11 --- /www/a/atlantadownt/htdocs/ and webmaster@atlantadowntownministry.com as path_mail....SQL also worked the first time as well as the require once config line in
lib-common.php .

$_CONF['have_pear'] = false;

$_CONF['mail_settings'] = array (
'backend' => 'mail',

PHP.ini register_globals is ON even though the docs say 'mail' won't work unless OFF (nothing else was changed, a CLEAN php.ini file)

No problems at all

Probably will never know why the 1.3.11 did not work, but I am up and running now.
Big Celebration

 Quote

All times are EST. The time is now 10:31 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