fpoyavo
asked on
Outlook with attachment
Hi Experts,
I have web form and need on button click open new outlook email message and attach file from local drive c:\my\some.txt
Thank you.
I have web form and need on button click open new outlook email message and attach file from local drive c:\my\some.txt
Thank you.
ASKER
Yes. I need to have outlook open a new message window showing the attachment
using mailto attribute will work if outlook is the user's default browser.
<SCRIPT language=javascript>
function MySub()
{document.mail.submit();}
</SCRIPT>
<BODY onload="MySub()">
<form name="mail" enctype="text/plain" method="get"
action=mailto:?subject=Doc ument&atta chment="c: \temp\file .txt">
</form>
--- from http://www.notestips.com/80256B3A007F2692/1/4CF1A694C1AAEC4780256D610013FEDE?OpenDocument ---
<SCRIPT language=javascript>
function MySub()
{document.mail.submit();}
</SCRIPT>
<BODY onload="MySub()">
<form name="mail" enctype="text/plain" method="get"
action=mailto:?subject=Doc
</form>
--- from http://www.notestips.com/80256B3A007F2692/1/4CF1A694C1AAEC4780256D610013FEDE?OpenDocument ---
It didn't work for outlook 2003, sorry
ASKER
It does open email but cannot attach file. I am looking for C# code not JavaScript.
Thank you.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
or
Sent a mail with that file as attachment