In my PDF file, I have set up a button for sending an email. The email is a request that needs approval or denial. I want the recipient to respond with just 2 clicks:
- Click on either "Approve" or "Deny" (a new email will pop up)
- Click on "send" - and it's done!
However, the links are currently lengthy and cluttered: https://i.sstatic.net/uCYMr.jpg Is there a way to shorten these links in Outlook to just "Approve" and "Deny" without any additional steps required in Outlook itself?
Context:
The sender wants to simply click "send" without having to do anything else in Outlook.
I am adding plain text from the PDF (refer to the image below), and I'm already pleased that Outlook automatically converts this text into clickable links.
https://i.sstatic.net/9z7w0.jpg
I am using Adobe LiveCycle Designer for this PDF email feature, and here is the code executed when the email button is clicked within the PDF:
sendMail();
function sendMail(to, from, subject, body)
{
to = (typeof to !== 'undefined') ? to : "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e99d8c9a9da99d8c9a9dc78d8c">[email protected]</a>";
from = (typeof to !== 'undefined') ? to : "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c1b5a4b2b581b5a4b2b5efa5a4">[email protected]</a>";
subject = (typeof subject !== 'undefined') ? subject : "Request Mail";
body = (typeof body !== 'undefined') ? body : "Hello,\n\n please approve this request!\n\n";
var subjectOk = "Request approved";
var subjectNo = "Request denied";
var responseOk = "Your request has been approved.";
var responseNo = "Your request has been denied.";
var linkOk = "<mailto:" + from + "?subject=" + subjectOk + "&body=" + responseOk + ":>";
var linkNo = "<mailto:" + from + "?subject=" + subjectNo + "&body=" + responseNo + ":>";
var links = linkOk + "\n" + linkNo;
event.target.app.mailMsg(
{
bUI: true,
cTo: to,
cSubject: subject,
cMsg: body + links
}
);
}
Is there a JavaScript function that can format my strings so that Outlook immediately recognizes them? Although the email format is "plain Text," Outlook still shows clickable links after sending the email. I am hopeful to find a way to hide these full links somehow.