ptonev.com
May 29, 2017, 10:45:50 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Errors with php script  (Read 14443 times)
Anonymous
Guest
« on: April 06, 2005, 04:11:40 pm »

When I run phpMailNotification.php I get the following error, and nothing happens:
Code:

Content-type: text/html
X-Powered-By: PHP/4.3.11

127.0.0.1, 110<b>
, 110<b>
<br />
<b>Warning</b>:  fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/www/phpmail/phpMailNotification.php</b> on line <b>161</b><br />
<br />
<b>Warning</b>:  fsockopen(): unable to connect to :110 in <b>/www/phpmail/phpMailNotification.php</b> on line <b>161</b><br />
Can't check @ account.<b>

My config looks like this:
Code:

127.0.0.1;username;****;nospam@gmail.com;%new%/%total% @ %account%;%emails%;

And my MNOTIFY_CFG_PATH looks like
Code:

define("MNOTIFY_CFG_PATH",              "/www/phpmail/");


Any help would be much appreciated.
Logged
ptonev
Administrator
Newbie
*****
Posts: 135


3119712
View Profile WWW
« Reply #1 on: April 06, 2005, 07:31:37 pm »

Hi,

this is not script error.

You can try to set config like this:
Code:
localhost;username;****;nospam@gmail.com;%new%/%total% @ %account%;%emails%;

If you have IMAP support you can try phpIMAPMailNotification. It is better.

Best regards,
Logged
Anonymous
Guest
« Reply #2 on: April 06, 2005, 07:45:08 pm »

It makes no difference what I use as the hostname, localhost, 127.0.0.1, eddie (the actual hostname), the errors still occur.
However by using the fully qualified name, it does check the pop account and send an email, but the errors still occur.
Logged
ptonev
Administrator
Newbie
*****
Posts: 135


3119712
View Profile WWW
« Reply #3 on: April 06, 2005, 08:33:39 pm »

Hi, again.

I think that you have problem with PHP. You are sure that you have this lib installed with you PHP.

On my server all work fine.

best regards,
Logged
Anonymous
Guest
« Reply #4 on: April 07, 2005, 01:00:44 am »

Quote from: "ptonev"

I think that you have problem with PHP. You are sure that you have this lib installed with you PHP.


Which "lib" do I need?
Logged
ptonev
Administrator
Newbie
*****
Posts: 135


3119712
View Profile WWW
« Reply #5 on: April 07, 2005, 12:40:33 pm »

Hi,

you are sure that on 127.0.0.1 you have POP3 (mail) server.

best regards,
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!