The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Benton Lam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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 Champions.
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>

TAGS
AUG Leaders

Atlassian Community Events