[pmwiki-users] Foxnotify and Html e-mail format

Hans design5 at softflow.co.uk
Sat Mar 29 08:48:05 CDT 2008

Friday, March 28, 2008, 3:38:22 PM, Hans wrote:

> You could try and change all kinds of variables
> which are set at the beginning of the script, in order to define new
> headers and insert html tags and coding type etc.

The following can perhaps give you some ideas.
But note that you can't use the FoxNotifyTemplates for inserting HTML
tags, unless you specifically allow certain html tags for it (possibly).

add in config.php (and don't use/remove/rename FoxNotifyTemplates)

//the next makes the email into HTML formatted email
$FoxNotifyHeaders = 'MIME-Version: 1.0' . "\r\n"
        .'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//try adding some HTML tags
//heading in the email body:
$FoxNotifyBodyHeadingFmt = "<h3>Recent \$WikiTitle posts: </h3>\n";

//each notify item:
$FoxNotifyItemFmt = "<a href='$ScriptUrl/{\$FullName}'>$ScriptUrl/{\$FullName}</a>"
             ." . . . $PostTime by <b>{$LastModifiedBy}</b><br /> \n";

//adding a footer
$FoxNotifyFooterFmt = "<br /><i>mail sent by pmwiki notification service</i>";  

$FoxNotifyBodyFmt = 


More information about the pmwiki-users mailing list