I'd like to put a mailto link in a Contact Us button. I'd like to capture the Page Name as the email Subject in addition of course to the email address in the To, is there a variable to do so?
I am able to set the email address, but failing in finding the correct variable to set the subject
you can indeed set the subject. You can even set a body, CC, or BCC. Example:
See this link for more info.
Best regards,
Sven
thanks Sven, but this will result in a static subject, what I need is a dynamic subject where the page title is displayed automatically, without being setup manually
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, this wasn't clear to me from your question. This can be done with a simple user macro:
## @param Name:title=unused|type=string|desc=unused|hidden=true
<a href="mailto:no-one@snai1mai1.com?subject=$content.getTitle()">Contact Us</a>
Best regards,
Sven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this is perfect!!
is there a possibility to display this as a button? or getting this macro as a URL to put it in a button?
Am I asking too much? :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure. You have full control of the HTML, you can do whatever you want. ;)
## @param Name:title=Name|type=string|desc=Your name|hidden=true
<form action="mailto:no-one@snai1mai1.com?subject=$content.getTitle()">
<button class="aui-button aui-button-primary" type="submit">Contact Us</a>
</form>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.