Email

Renders an email address clickable for quick access.

Best practices

  • Avoid writing an email address in full
  • Link the name, the division or the call to action instead
  • For the Bank’s economic research staff profiles, add their full email address

Example

				
					<script>
	function getMailLink(user, domain, class_id, content) {
		var addr = user + "@" + domain;
		if (class_id) {
			class_id = ' class="' + class_id + '"';
		}

		document.write(
			'<a href="mailto:' + addr + '"' + class_id + '>' + content + '</a>'
		);
	}
	getMailLink("Loremipsum","Loremipsum.ca","","Lorem ipsum");
</script>
<a href="mailto:Loremipsum@Loremipsum.ca">Lorem ipsum</a>
				
			

Shortcode

		
		    [Email email="Loremipsum@Loremipsum.ca"]Lorem ipsum[/Email]