Click here to Skip to main content
14,661,076 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hai Everyone
Actually my need is if clike button in web site it will open outlook window with add all fields like to address,subject,file attachment, from address automatically appear when create profile in outlook so dont brother from address, i will write code for outlook and work in local drive ,if i publish in iis(server) it not work,it give some permission error.

u can visit this page[^] at the bottom if u click on link ,it open outlook same like i want,it open outlook window and user click send button in outlook.
pls reply me

Note:u try in iis not in local drive,local drive it work
Updated 29-Jun-13 7:11am
Zoltán Zörgő 29-Jun-13 16:31pm
just a question: what if the client has no outlook installed?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You use the MAILTO tag.

<a href=" for Windows 8" id="HT_MailLink"></a>
Aravindba 29-Jun-13 13:17pm
Thank for ur reply .This one is work when website in server(i mean iis) and how attach file ?
This one open outlook ?
Mike Meinz 29-Jun-13 13:34pm
ASP .NET code running on the server cannot access Outlook running on the client. If it could, that would be a security weakness.

You could try writing a JavaScript script that runs on the client. See Need help on starting an Outlook Email from webapp with file attachment

You haven't clearly expressed the business problem so it is difficult to give you a quality answer. Where is the file to be attached (Client or Server)? Why does it have to be emailed by the client via Outlook? Could the server email it using SMTP?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100