简体   繁体   中英

How do I open the default mail client and create an email?

I want to open the default mail client registering on Windows and create an email with an attachment.

The behaviour is just like when you right click on a file, the Send to -> Mail Recipient. Or when you compressing a folder and select 'compress and email' on the context menu.

I have tried:

  1. mailto:xxx@example.com, which doesn't accept attachment.
  2. MAPI, which works well when the outlook is shutdown, but doesn't work when the outlook is currently working. Do you know how to make it work?

Do you have any other ideas?

Thanks!

根据邮件客户端的版本,尝试将&attach="C:\\some_file.txtmailto:xxx@xxx.com 。这会在邮件客户端打开时添加附件。如果attach不起作用,请尝试attachment ,我想知道您是否不能同时添加两者。

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