I am converting Visualforce pages to Lightning Web Components. One element is a button that has as a target mailto:
What I am seeing: the mail client is started, with the proper To: value. But cc and body are empty. Even when I have a very simple mailto value:
mailto:nowhere@mozilla.org?cc=nobody@mozilla.org&subject=This%20is%20the%20subject
The only thing that is filled, is the To. Everything after the ? seems to be ignored. Under Classic it's working perfectly. Do I need to do something else?
Part of HTML:
<div class="slds-no-flex">
<form action={replyToEmailLink}>
<button type="submit" class="slds-button slds-button_neutral">
{replyToEmailLabel}
</button>
</form>
</div>
Part of JS:
get replyToEmailLink() {
return 'mailto:nowhere@mozilla.org?cc=nobody@mozilla.org&subject=This%20is%20the%20subject';
}
In the console I get a warning:
Mixed Content: The page at 'https://XYZ.lightning.force.com/lightning/r/Opportunity/0060C0000039cbDQAQ/view' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'mailto:nowhere@mozilla.org?cc=nobody@mozilla.org&subject=This%20is%20the%20subject'. This endpoint should be made available over a secure connection.
But the link itself is working, I get a mail-compose window of my email client (Outlook).