const ADDRESS = 'hello@email.com';
const SUBJECT = 'Long time no see';
const BODY = 'Hi there'
const USER_AGENT = `User agent: %0a${navigator.userAgent}%0aUrl: %0a${location.href}`;
function getMailLink() {
return `mailto:${ADDRESS}?subject=${SUBJECT}&body=${BODY}?%0a%0a%0a%0a%0a%0a-----------%0a%0a${USER_AGENT}`;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.