xoops forums

davidsless

Just popping in
Posted on: 2007/5/25 0:36
davidsless
davidsless (Show more)
Just popping in
Posts: 49
Since: 2006/10/5
#1

Could not instantiate mail function

Hi,

The message in the subject line has begun appearing on our login page when a user forgets their password, types in their email and sends the message.

We have tried a number of things to cure this including reinstalling some of the relevant php files in the htdocs directory, updating the module, altering the Mail settings in our System Module Preferences.

We have been in touch with our service provider and they claim that there is no problem at their end.

I have googled the subject line and it appears our problem is not unique to us, nor to xoops, but I also get the impression that nobody out there really knows how to fix it.

Any thoughts, ideas?

script_fu

Friend of XOOPS
Posted on: 2007/5/25 1:22
script_fu
script_fu (Show more)
Friend of XOOPS
Posts: 1494
Since: 2002/12/27
#2

Re: Could not instantiate mail function

Quote:

davidsless wrote:
Hi,

The message in the subject line has begun appearing on our login page when a user forgets their password, types in their email and sends the message.


This is a very strange error? I have never seen this before.
Can you tell us a lil more about your set up? Nix, windows, cpanel, helm??? What are your running?

davidsless

Just popping in
Posted on: 2007/5/25 1:47
davidsless
davidsless (Show more)
Just popping in
Posts: 49
Since: 2006/10/5
#3

Re: Could not instantiate mail function

Here are the settings from our cpanel


Operating system Linux
Service Status Click to View
Kernel version 2.6.8-022stab078.21-enterprise
Machine Type i686
Apache version 1.3.37 (Unix)
PERL version 5.8.0
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 4.4.4
MySQL version 4.1.21-standard
cPanel Build 10.9.0-RELEASE 10737
Theme cPanel X v2.6.0

christian

Just can't stay away
Posted on: 2007/5/25 11:45
christian
christian (Show more)
Just can't stay away
Posts: 401
Since: 2002/2/24
#4

Re: Could not instantiate mail function

With XOOPS 2.0.16, you must modify the preferences, mail setup page with :

Quote:

Mail delivery method : SMTPAUTH
SMTP host(s) / mail.domaine.com
SMTPAuth username : adresse@domaine.com
SMTPAuth password : xxxxxxxxxx

davidsless

Just popping in
Posted on: 2007/5/25 23:21
davidsless
davidsless (Show more)
Just popping in
Posts: 49
Since: 2006/10/5
#5

Re: Could not instantiate mail function

Hi Christian,

The answer you gave me did not solve the problem but it made fault visible. As is often the case, the real problem was me!

A few days ago I decided that two of us should get administrative notifications from the site so I changed the 'Admin mail address' in the general preferences, adding the other persons email and separating the two emails with a coma, as one does on a normal email. That is what caused the problem.

Once I changed the mail settings, as you suggested, instead of the inscrutable 'Could not instantiate mail function', I got an error message saying that it didn't recognise the two emails separated by a comma as a valid email address.

So, thank you. You did help me fix it in a roundabout way.

But this lead me back to the original problem I tried to solve. How do I get admin emails directed to two different people?

Any ideas?

jdseymour

Friend of XOOPS
Posted on: 2007/5/25 23:49
jdseymour
jdseymour (Show more)
Friend of XOOPS
Posts: 3782
Since: 2004/11/11
#6

Re: Could not instantiate mail function

As long as the second admin is a webmaster, both should receive admin notices by email to each webmaster's address automagically.

davidsless

Just popping in
Posted on: 2007/5/26 1:05
davidsless
davidsless (Show more)
Just popping in
Posts: 49
Since: 2006/10/5
#7

Re: Could not instantiate mail function

Of course!

Thanks