Posted on: 04/18/04 05:33pm
By: Sniper12
I have a small mail problem
I get this error when using mail in config.php
Fatal error: Call to a member function on a non-object in
/customers/sugecrew.dk/sugecrew.dk/httpd.www/prideofvbk/geeklog/public_html/lib-common.php on line 3259
Then I trayed to use the SMTP option in sted, and if I use true in the 'auth' line. I don't get a mail. but I get an error in the error.log file
[pear_error: message="unable to authenticate to smtp server" code=0 mode=return level=notice prefix="" info=""]
When I use false in the 'auth' line I get this error on the screen in 2 sek.
Warning: Cannot set time limit in safe mode in /usr/share/php/PEAR/Mail/RFC822.php on line 179
but I get an mail, and ther is no error in the error.log file
Plz help me I have spend a long time on this error.
A small mail problem
Posted on: 04/19/04 03:16pm
By: Sniper12
Is there somebody there have any ideas ?
A small mail problem
Posted on: 05/06/04 07:30pm
By: Peter_Apockotos
I get the same error when someone registers:
[pear_error: message="unable to set sender to [@]" code=0 mode=return level=notice prefix="" info=""]
mail setup is set to smtp when these errors occur, but setting it to mail it works fine. Strange SMTP was working with the last version of 1.3.8. The only reason I caught on was the fact that newly registered users never logged in.
A small mail problem
Posted on: 05/07/04 07:17am
By: Sniper12
I have found the error
line nr. 138 in the config file
$_CONF['path_pear'] = $_CONF['path_system'] . 'PEAR/';
$_CONF['path_pear'] = $_CONF['path_system'] . 'pear/';
A small mail problem
Posted on: 05/07/04 04:21pm
By: Peter_Apockotos
In my config, I just have:
$_CONF['path_pear'] = $_CONF['path_system'] . 'pear/';
Are you suggesting that I add $_CONF['path_pear'] = $_CONF['path_system'] . 'PEAR/'; to the config or replace $_CONF['path_pear'] = $_CONF['path_system'] . 'pear/'; with $_CONF['path_system'] . 'PEAR/';
A small mail problem
Posted on: 05/07/04 04:44pm
By: Dirk
FWIW, Geeklog ships with a lower-case "pear" directory (i.e. system/pear) and therefore, the case in the config.php matches that (i.e. it's also lower-case). This should work as expected "out of the box".
Maybe Sniper12 renamed his directory or some software he used did it. I don't think this is the solution to the problem described earlier in this thread.
Instead, I'd try switching $_CONF['have_pear'] to true:
$_CONF['have_pear'] = true;
(assuming your webserver is running at least PHP 4.3.0)
bye, Dirk
A small mail problem
Posted on: 05/07/04 06:52pm
By: Peter_Apockotos
My host does provide pear. But when I set it to true, I still get:
[pear_error: message="unable to set sender to [@]" code=0 mode=return level=notice prefix="" info=""]
Any other ideas? Is there anything to having the Site Name as Knightrider.org and the mail domain as mail.knightrider.org as another poster suggested???
A small mail problem
Posted on: 05/08/04 05:09am
By: Sniper12
I did not rename the directory, maybe some software did it. But it worked after I changed it from PEAR to pear
A small mail problem
Posted on: 08/29/04 08:56am
By: Anonymous (unleash)
Problem:
[pear_error: message="unable to set sender to [@]" code=0 mode=return level=notice prefix="" info=""]
on 1.3.9sr1. Using smtp, pear = false.
Found a solution that worked for me:
- in config.php :
$_CONF['site_name'] = 'penaddict.de'; CHANGED TO
$_CONF['site_name'] = 'penaddict';
Seems like the mailer does not like any URL-like name as the site_name-variable.
Found the hint here:
http://dloepfe.com/main/article.php?story=20040326125905436
Hope that helps someone.
Re: A small mail problem
Posted on: 01/22/07 08:00am
By: Anonymous (wiewior [przemekkus DELETE IT at interia dot pl])
Had the same problem: pear_error: message="unable to set sender to [@]"
It happened when I had used polish national characters before "From" email address:
Text Formatted Code
$msg['headers']['From'] = 'źćś' . '<' . $EMAIL_FROM . '>'
So, it's necessary to encode it for example like this:
Text Formatted Code
$msg['headers']['From'] = imap_8bit('źćś') . '<' . $EMAIL_FROM . '>'
It will do the trick.
Re: A small mail problem
Posted on: 01/22/07 02:07pm
By: Dirk
Quote by: wiewior [przemekkus DELETE IT at interia dot pl]Had the same problem: pear_error: message="unable to set sender to [@]"
It happened when I had used polish national characters before "From" email address
Which Geeklog version was that? 1.4.1 should (finally) encode all special characters correctly.
bye, Dirk