Ignore:
Timestamp:
10/15/09 19:30:49 (3 years ago)
Author:
KennethLavrsen
Message:

Item2260: MailerContrib cannot find email templates based on skin or web
Fixed the code so it is the topic context of WebNotify that is used when we send emails instead of the default Main.WebHome
Major update of the documentation to describe how you can tailor the email format based on web

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MailerContrib/lib/Foswiki/Contrib/MailerContrib.pm

    r4557 r5270  
    2727 
    2828our $VERSION = '$Rev$'; 
    29 our $RELEASE = '23 Apr 2009'; 
     29our $RELEASE = '15 Oct 2009'; 
    3030our $SHORTDESCRIPTION = 'Supports e-mail notification of changes'; 
    3131 
     
    336336    my $report = ''; 
    337337 
     338    # We read the mailnotify template in the context (skin and web) or the 
     339    # WebNotify topic we are currently processing 
     340    Foswiki::Func::pushTopicContext( $web, $Foswiki::cfg{NotifyTopicName} ); 
    338341    my $skin = Foswiki::Func::getSkin(); 
    339342    my $template = Foswiki::Func::readTemplate( 'mailnotify', $skin ); 
     343    Foswiki::Func::popTopicContext(); 
    340344 
    341345    my $homeTopic = $Foswiki::cfg{HomeTopicName}; 
Note: See TracChangeset for help on using the changeset viewer.