Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Could I create a mailto link with subject that dynamically fills in the current page URL?

Benton Lam September 20, 2012

Hi,

I would like to create a mailto link in confluence markup that puts the current page's URL in the subject part.

For a normal mailto link, I know I could try [mailto:foo@bar.com?subject=baz], but I don't seem to know of any convenient way to put a macro so that I could insert the current page URL in the subject.

Any tips?

2 answers

1 vote
heidi lund July 7, 2014

This worked for me, using the reporting macro:

[Order article|mailto:email@email.com?subject=Article Request: {report-info:title|source=@self}]

1 vote
Daniela Scheiwe
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 1, 2013

Hi! A simple macro could look like this:

## @noparams
<a href="mailto:foo@bar.com?subject=$space.getName() $content.getDisplayTitle()">Mail</a>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events