ptonev.com

Products and Projects => php Mail Notification => : rullzer August 24, 2004, 02:45:18 AM



: I don't get this
: rullzer 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:
:

#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

:

#!/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


: I don't get this
: ptonev 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.


: I don't get this
: rullzer 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


: I don't get this
: ptonev 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.


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


: I don't get this
: ptonev August 27, 2004, 07:19:50 AM
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.


Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.