Mail notification in Confluence 4.3.6 will not show page content

In previous versions of Confluence (pre 4.x) when watching a page with mail notification you would get the page content included in the mail.

Not anymore I m sad to say. The documentation, to my knowledge, does not mention this and I rasied an issue with Confluence Support regarding this (CSP-98280).

Has anybody seen this change in behaviour and/or does anybody have a solution to be able to have the old behaviour back?

Regards Lars

2 answers

1 accepted

For the original fucntionality, the following request was brought up with development and subsequently denied.

Bring back option to show full context in notification emails

However, there is a work around where we can alter the veloccity template to bring the fucntionality back to a certain extent. If we expand the <conlfuence install direcotry>/confluence/WEB-INF/lib/confluence-X.X.X.jar file we can then edit the templates/email/html/page-edited-notification.vm file so that the default watch functionality includes the entire page. To do so, change the showdiffs block from this...(may change depending on version)

#if ($showDiffs)
        &lt;div class="email-diff"&gt;
        #if ($diffHtml)
             #parse ("/template/includes/page-diffs.vm")
        #else
            &lt;p class="aui-message error"&gt;
                $i18n.getText('diff.pages.error.diffing')
            &lt;/p&gt;
        #end
        &lt;/div&gt;
    #end

To this ...

#if ($showDiffs)
        &lt;div class="email-diff"&gt;
        #if ($diffHtml)
             #parse ("/template/includes/page-diffs.vm")
        #else
            &lt;p class="aui-message error"&gt;
                $i18n.getText('diff.pages.error.diffing')
            &lt;/p&gt;
        #end
        &lt;/div&gt;
	 #else
	&lt;div class="email-page"&gt;
        	$viewRenderer.render($content.bodyAsString, $conversionContext)
    	&lt;/div&gt;
    #end

This is of course a customization and would need to be updated when Confluence is upgraded. Once the change is mad, re-make the jar with the altered velocity file and restart Confluence to see the affects. I hope this helps provide a viable option for you.

Cheers,
Andrew Campbell

0 vote
Joe Clark Atlassian Team Mar 22, 2013

Hi Lars,

Newer versions of Confluence should still contain a partial inclusion of the relevant page content in the notification mail. Are you seeing any page content in the mail at all?

If the page is particularly long, the email may prevent the full content of the page from displaying, but you should still see a snippet of the content.

Unfortunately I don t get any content att all except when I request changes in which case I get the actual comparison output.

The only thing I get is a set of links that can take me e.g. to the actual page. This however is not "good enough" since I have to be logged on to our network to get at the server which I am not if I recieve the mail e.g. on a smart phone.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

111 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you