Taggic / IssueTracker

issue tracking as dokuwiki plugin
http://www.fristercons.de/fcon/doku.php?id=issuetracker:descr
8 stars 2 forks source link

No Mail Notification when use HTML Templates #14

Closed dior1 closed 10 years ago

dior1 commented 10 years ago

Hi,

when I disable the html Template Option the mail notification works fine. But with enabled Option I get no mail...

The Templates are in the correct Folder (\lib\plugins\issuetracker\mailtemplate)

Taggic commented 10 years ago

what mail Client do you use ? is it confgured to receive html emails ?

dior1 commented 10 years ago

Outlook 2010 and ti receive html mails from other sources.

is there any config in the plugin that I have to adjust?

Taggic commented 10 years ago

I'm not an Outlook specialist (more a novice). There maybe some security settings not allow to receive html mails. But it could have also have something to do with content type of mails. The mail contains in the header: "Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable" It may also happen that a Virus scanner or spam checker of the mail server disallow the mail from issue tracker / web server. can you check your mail Server for this email ? probably the mail Server does not forward the email for what reason ever. should be noticed somewhere in a log file.

dior1 commented 10 years ago

Thx for your replay.

cant figure out anything except a log entry in php:

PHP Warning: file_get_contents(C:\inetpub\wwwroot\DokuWiki/lib/plugins/http://xxx.xxx.xxx.xxx/dokuwiki/lib/plugins/issuetracker/mailtemplate/new_issue_mail.html): failed to open stream: Invalid argument in C:\inetpub\wwwroot\DokuWiki\lib\plugins\issuetracker\syntax.php on line 856

Taggic commented 10 years ago

seems the file is not stored into the folder ...dokuwiki/lib/plugins/issuetracker/mailtemplate/new_issue_mail.html

please check

dior1 commented 10 years ago

The File is in the Folder: ....DokuWiki\lib\plugins\issuetracker\mailtemplate\new_issue_mail.html

Security Settings: Everyone: Modify for the Folder and html files

so this should be ok

Taggic commented 10 years ago

looking at the PHP warning: somehow your path is looking crazy. Seems there is a mix-up of lokal path and web address:. There has to be just lokal or web part but not both concat.

C:\inetpub\wwwroot\DokuWiki/lib/plugins/http://xxx.xxx.xxx.xxx/dokuwiki/lib/plugins/issuetracker/mailtemplate/new_issue_mail.html

The local path seems to be the right one. Where does the http address is coming from ?

dior1 commented 10 years ago

that Looks indeed very odd. Can´t thell where this is from.

I´ve changed (for testing) the line 855 in the Syntax.php to: $sFilename = 'C:\inetpub\wwwroot\DokuWiki\lib\plugins\issuetracker\mailtemplate\new_issue_mail.html';

The error is gone in the php log but still no html mail...

Taggic commented 10 years ago

in syntax.php lines 940 and 942 you will find

return @mail ...

please delete the @-character this does not solve the issue but failures will become visible on screen

dior1 commented 10 years ago

in the php log

mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

Looks like a config Problem with php

dior1 commented 10 years ago

:) Wrong smtp entry in php.ini

Thank you very very much for your help!!

by the way: great plugin