简体   繁体   中英

Open Outlook “new mail” dialog and insert an attachment from an ASP.NET web page

I was wondering if it's possible to open an Outlook 'new mail' dialog and insert an attachment from an ASP.Net web page.

I'm trying to run this from the Intranet and the I do have outlook on my desktop machine, which is where I am opening the page from, as would other folks here.

I would appreciate any idea, help, tutorial. Thank you

Possibly you can do that using some ActiveX object in IE, but with regular JS/HTML you can't do such things. The only way to open outlook window from browser is <a href="mailto:...." which will open default mail program (it may be a program different from outlook). But that is very limited option (limited size of body, no html, no attachments etc.)

Suppose the best way here will be sending email from server. You can ask user for email body and receivers list and send it usin System.Net.Mail namespace.

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