Mailer Error: Could not instantiate mail function.

Once you've installed phpList Version 2... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

Mailer Error: Could not instantiate mail function.

Postby pia » 2:54pm, Fri 23 Mar, 2007

Here is what I get when I try to send a test message.

1727 del send 2007-03-23 09:38:59 Error sending message 9 to user@address.com (user@address.com)

1726 del send 2007-03-23 09:38:59 Mailer Error: Could not instantiate mail function.

I am using phplist version 2.10.4 on a windows server 2003 server. I am using another smtp server on the local subnet to send the mail. I can use outlook express to send mail from this windows server to anyone and it works.

This is the only smtp setting I have configured.

define("PHPMAILERHOST",'192.168.1.6');

I have searched through a lot of posts here and really didn't see anything that could fix this.

Any Ideas?
Thanks,
John
pia
PL Nut
 
Posts: 15
Joined: 1:55pm, Fri 23 Mar, 2007

Postby pia » 3:49pm, Fri 23 Mar, 2007

I found something that said change line 44 in admin/class.phplistmailer.php

From:
$this->Mailer = "mail";
To:
$this->Mailer = "sendmail";

and now phplist says the e-mail was successful but I never get anything and don't see the phplist server even make and attempt to connect with my smpt server.
pia
PL Nut
 
Posts: 15
Joined: 1:55pm, Fri 23 Mar, 2007

Postby H2B2 » 6:02pm, Fri 23 Mar, 2007

Did you disable test mode in config.php, as described in the FAQs?

If the problem persists, you could try to enable SMTP in config.php and -in that case- also take a look at this report: http://mantis.phplist.com/view.php?id=8590
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Postby pia » 6:16pm, Fri 23 Mar, 2007

H2B2 wrote:...also take a look at this report: mantis.phplist.com/view.php?id=8590


Thank you so much for directing me to this!

This is what helped it work.

So I did a quickfix and replaced the problematic line
if (!$this->Host || $ip == $this->Host)
with this one:
if (!$this->Host)


Again, thanks a lot for your help!
pia
PL Nut
 
Posts: 15
Joined: 1:55pm, Fri 23 Mar, 2007


Return to Question & Problems - after installing

Who is online

Users browsing this forum: No registered users and 3 guests