[英]Open Outlook (aaplication or browser) and populate recipient field
I'm a learning designer working in Articulate Storyline.我是一名在 Articulate Storyline 工作的学习设计师。 I've asked this on their community site but its been suggested to ask here.
我在他们的社区网站上问过这个问题,但建议在这里问。 In Articulate I have the option to add in Javascript under what they call triggers, this is the query I have.
在 Articulate 中,我可以选择在他们所谓的触发器下添加 Javascript,这就是我的查询。
When the button is clicked, I would like specifically Outlook to open and the recipient field to be populated with a certain email address.单击该按钮时,我特别希望打开 Outlook 并用某个 email 地址填充收件人字段。 From what I have searched so far, I understand I can open Outlook's browser version using
window.open("https://outlook.live.com/mail/0/")
.根据我到目前为止的搜索,我知道我可以使用
window.open("https://outlook.live.com/mail/0/")
打开 Outlook 的浏览器版本。 When added to the trigger this works.当添加到触发器中时,它可以工作。 However, I can't see where the
mailto
command would sit with this.但是,我看不到
mailto
命令将与此放在哪里。
Is it even possible to open the compose mail window in a browser and or is there anyway to open the desktop application instead.是否可以在浏览器中打开撰写邮件 window 或者是否可以打开桌面应用程序。
Thanks for any advice or help you can give me here.感谢您在这里给我的任何建议或帮助。
Not knowing the specifics of Articulate Storyline, but if you can add HTML one option is to use a regular "a" tag for this.不知道 Articulate Storyline 的细节,但如果您可以添加 HTML 一个选项是为此使用常规的“a”标签。 It will open in the e-mail client that is default on the users computer though, which may be Outlook or something else.
它将在用户计算机上默认的电子邮件客户端中打开,可能是 Outlook 或其他。
<a href="mailto:jane.doe@somewhere.com">Email link</a>
You can read more here: https://www.w3schools.com/tags/tag_address.asp您可以在此处阅读更多信息: https://www.w3schools.com/tags/tag_address.asp
Is it even possible to open the compose mail window in a browser and or is there anyway to open the desktop application instead.
是否可以在浏览器中打开撰写邮件 window 或者是否可以打开桌面应用程序。
Use the mailto protocol which opens a client's e-mail system and begins a new email message.使用mailto协议打开客户端的电子邮件系统并开始新的 email 消息。 For example:
例如:
<a href="mailto:user@example.com?
subject=MessageTitle&
body=Message Content">
Contact Us</a>
The following example shows how to use an HTML form to create an e-mail message.以下示例显示如何使用 HTML 表单来创建电子邮件消息。
<form action="mailto:user@example.com" method="get">
<input name="subject" type="hidden" value="Message Title">
Feedback:<br/>
<textarea name=body cols="40">
Please share your thoughts here
and then choose Send Feedback.
</textarea>
<input type="submit" value="Send Feedback">
</form>
For more information on the mailto
protocol, see RFC2368: The mailto URL scheme .有关
mailto
协议的更多信息,请参阅RFC2368:mailto URL 方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.