ptonev.com

Products and Projects => php Mail Notification => Topic started by: Anonymous on April 06, 2005, 04:11:40 pm



Title: Errors with php script
Post by: Anonymous 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.


Title: Errors with php script
Post by: ptonev 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,


Title: Errors with php script
Post by: Anonymous 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.


Title: Errors with php script
Post by: ptonev 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,


Title: Errors with php script
Post by: Anonymous 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?


Title: Errors with php script
Post by: ptonev 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,