ptonev.com

Products and Projects => php Mail Notification => Topic started by: rullzer on August 24, 2004, 02:45:18 am



Title: I don't get this
Post by: rullzer on August 24, 2004, 02:45:18 am
Ok i tried somethings now but i can't get this to work. Maybe you can help me.

I put my phpMailNotification.php in the public_html folder. since that is the folder to wich you can acces the file so for http://www.mydomain.com/phpMailNotification.php that is.

I put phpMailNotification.cfg in a subdir called notifier

the phpMailNotification.cfg file is:
Code:

#host;user;password;mailto;subject text;body text
mail.[b]mydomain.com[/b];rullzer;[b]password[/b];[b]email[/b];%new%/%total% @ %account% - %emails%;


the dir notifier has 777 acces


my checkm.sh file is in the same public_html folder as phpMailNotification.php so my checkm.sh file is

Code:

#!/bin/bash
php phpMailNotification.php


the cron job is working but it only returns in an email:

#!/bin/bash
php phpMailNotification.php


what am i doing wrong?

thnx in advance
rullzer


Title: I don't get this
Post by: ptonev on August 25, 2004, 10:00:42 am
Hi,

In phpMailNotification.php have line:

define("MNOTIFY_CFG_PATH",      "./");

It must be change and replace "./" with path to folder where is your phpMailNotification.cfg file.

Run phpMailNotification.php and look that it return. Script say someting if have error or if all is right.

And last, check values in phpMailNotification.cfg file. For help look at txt file in package.


Title: I don't get this
Post by: rullzer on August 25, 2004, 08:31:31 pm
i changed the ./ to /notifier/
but still not working :(

altough if i open phpMailNotification.php i get a list of all the new mails since last check. and it mails that to the email adres but not in a waythat i know how many new emails are theire.

rullzer


Title: I don't get this
Post by: ptonev on August 25, 2004, 09:24:41 pm
Try to change MNOTIFY_CFG_PATH to "./notifier/".
If you set it on "/notifier/" that script look at root folder on server.


Title: I don't get this
Post by: rullzer on August 27, 2004, 05:25:13 am
it is not "./notifier/"
but still no message :(


Title: I don't get this
Post by: ptonev on August 27, 2004, 07:19:50 am
Quote
it is not "./notifier/"
but still no message :(

Strange, it is a very strange.

If you have IMAP mod you can try new script phpIMAPMailNotify:

http://www.ptonev.com/project.php?lang=en&id=phpImapMailNotify

This is same as phpMailNotify but use IMAP to connect to POP3.