ptonev.com
November 21, 2017, 11:22:38 pm *
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: I don't get this  (Read 7652 times)
rullzer
Guest
« 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
Logged
ptonev
Administrator
Newbie
*****
Posts: 135


3119712
View Profile WWW
« Reply #1 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.
Logged
rullzer
Guest
« Reply #2 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
Logged
ptonev
Administrator
Newbie
*****
Posts: 135


3119712
View Profile WWW
« Reply #3 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.
Logged
rullzer
Guest
« Reply #4 on: August 27, 2004, 05:25:13 am »

it is not "./notifier/"
but still no message :(
Logged
ptonev
Administrator
Newbie
*****
Posts: 135


3119712
View Profile WWW
« Reply #5 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.
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!