简体   繁体   中英

How to redirect to outlook mail with a recipient added in javascript?

In gmail i can add the recipients in the link and it will direct to compose mail as written below

let email = "alexmurphy98@gmail.com";
let link = `https://mail.google.com/mail/?view=cm&fs=1&to=${email}`; 

Then in an anchor tag to use that link

 <a href=`${link}` target="_blank">gmail</a>

My question is how can i do the same thing in outlook?As their compose does not contain any link.

试试这个,这似乎工作正常。

https://outlook.live.com/mail/0/deeplink/compose?to=your@email.com

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM