简体   繁体   中英

How I can open Outllook with Recipient in a ASP.NET Application

I want about a ASP.NET Application open Outlook with the Recipient without the mail is send. Only open Outlook with the Recipient.

I want test it for a other application and in my test I use a Textbox with the Recipient text and a Button openOutlook.

How I can do this?

Assuming Outlook is the default email client installed, you can use the mailto prefix in an anchor tag :

<a href="mailto:user@example.com">Send email to user@example.com</a>

Otherwise, your choices may be limited as your web server has no way of opening specific applications on client computers. You may have to develop an ActiveX or Java applet, but this would really be overkill.

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