Email notification

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Email notification

Post by DaRichMan »

After updating to 1.5.4 i do not receive any email anymore. Today i updated to 1.6.0 and still no notifications after new entries.

Any adeas?
Thorsten
Posts: 15731
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you tell me something about your configuration?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Post by DaRichMan »

phpMyFAQ Version
phpMyFAQ 1.6.0
Server Software
Apache/2.0.54 (Fedora) DAV/2 PHP/5.0.4 mod_python/3.1.4 Python/2.4.1 mod_ssl/2.0.54 OpenSSL/0.9.7f mod_perl/2.0.1 Perl/v5.8.6
PHP Version
PHP 5.0.4
Register Globals
off
Safe Mode
off
Database Client Version
4.1.16
Database Server Version
4.1.16
Webserver Interface
APACHE2HANDLER

Config file:

Code: Select all

<?php
// Created 2006-04-25 15:58:00

// Taal-bestand
$PMF_CONF["language"] = "language_nl.php";

// Activeer automatische inhoud onderhandeling
$PMF_CONF["detection"] = "TRUE";

// Titel van de FAQ
$PMF_CONF["title"] = "My Faq";

// FAQ Versie
$PMF_CONF["version"] = "1.6.0";

// Beschrijving van de pagina
$PMF_CONF["metaDescription"] = "";

// Sleutelwoorden voor Spiders
$PMF_CONF["metaKeywords"] = "";

// Naam van de uitgever
$PMF_CONF["metaPublisher"] = "Me";

// Emailadres van de beheerder
$PMF_CONF["adminmail"] = "me@mycompany.nl";

// Contact informatie
$PMF_CONF["msgContactOwnText"] = "Bla bla bla";

// Copyright tekst voor op de startpagina
$PMF_CONF["copyright_eintrag"] = "©2006 Me";

// Tekst voor de send2friend pagina
$PMF_CONF["send2friend_text"] = "";

// maximum grootte van bijlagen in Bytes (max. 200MByte)
$PMF_CONF["attmax"] = "2000000";

// Link de bijlagen onder de ingangen?
$PMF_CONF["disatt"] = "TRUE";

// gebruik Tracking?
$PMF_CONF["tracking"] = "TRUE";

// gebruik Beheerlog?
$PMF_CONF["enableadminlog"] = "TRUE";

// Wilt u dat het IP wordt gecontroleerd wanneer de UINs in admin.php worden gecontroleerd?
$PMF_CONF["ipcheck"] = "TRUE";

// Aantal weergegeven onderwerpen per pagina
$PMF_CONF["numRecordsPage"] = "10";

// Aantal nieuws artikelen
$PMF_CONF["numNewsArticles"] = "4";

// Blokkeer deze IPs
$PMF_CONF["bannedIP"] = "";

?>
Thorsten
Posts: 15731
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you enable the debug mode in inc/init.php and try to send a mail? I hope you'll get an error message then.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Post by DaRichMan »

Added some content » No error no mail
Send to Friend » No error no mail

Some lines of php.ini:

Code: Select all

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
Thorsten
Posts: 15731
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

do you have access to your mail logs. Do you use other PHP scripts where the mailing works?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Post by DaRichMan »

Thorsten wrote: do you have access to your mail logs
Do you mean /var/spool/mail ??
If so, yes
Do you use other PHP scripts where the mailing works?
Nope :?
phpMyFAQ is the only script i use on this server

Telnet from a shell directly on the server gives:
Image

Don't know if this info is relevant :wink:
Thorsten
Posts: 15731
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you test this little script:

Code: Select all

<?php
mail('thorsten@phpmyfaq.de', 'Test', 'This is a test message');
Does that work?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Post by DaRichMan »

Maybe a dumb question, where do i put this code :oops:
Thorsten
Posts: 15731
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

just create a file with the name mailtest.php, paste the code into the new file, and run it within your browser...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Post by DaRichMan »

:cry: Noting, only an empty screen
Thorsten
Posts: 15731
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

and I received no mail.... Do you see that mail in your mail log?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Post by DaRichMan »

I search within the file in /var/spool/mail/root
There was nothing with your e-mail address
Thorsten
Posts: 15731
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay, you have a general problem with PHP and mail. :-(

Since I do not know how to configure PHP and mail I can't help you here... :-(

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
DaRichMan wrote:I search within the file in /var/spool/mail/root
There was nothing with your e-mail address
this is the root mailbox whilst you must grep into the sendmail log, e.g.:

Code: Select all

grep thorsten@phpmyfaq.de /var/log/maillog
I also see that this is a Fedora linux flavour: if this OS is under Legacy updates there were many rumors in their ML for sendmail issues after the last update.
Hoping this can help you :wink:
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Post Reply