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

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
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events