使用电子邮件参数向 link 发送电子邮件 在浏览器中打开 outlook 开始新电子邮件

Email to link with email parameter opens outlook in browser starts new email

我正在寻找替换“mailto:”,将用户重定向到浏览器中的 outlook 帐户,并使用 link.[ 中的电子邮件发送新电子邮件=14=]

mailto: 适用于所有已在本地设置默认应用程序 outlook 的用户。

<a href="mailto:example@outlook.com">Send Email</a>

这将打开默认电子邮件应用程序以将新电子邮件发送至 'example@outlook.com'

我想专门为 office365 outlook 邮件用户使用这个,所以我不需要使用默认应用程序,例如:

<a href="http://sendemailusingoutlook?toEmail=example@outlook.com">Send Email</a>

并且当用户点击 'Send Email' 它应该在浏览器中打开 office365 outlook 并且有新的电子邮件到 'example@outlook.com'

有什么方法可以做到吗?

使用以下url从outlook online启动邮件,可以修改邮件地址、主题和邮件正文。

https://outlook.office.com/owa/?path=/mail/action/compose&to=emailname@domain.com&subject=Email%20Subject%20Here&body=some+content+goes+here

Link 撰写 outlook 邮件:

https://outlook.office.com/owa/?path=/mail/action/compose

根据您的用例在 URL 中传递参数:

&to=emailname@domain.com
&subject=Email%20Subject%20Here
&body=some+content+goes+here