I have the following options
- Using
System.Net.Mail
namespace and send mail throughSMTPClient
- Connecting to Outlook specifically and adding attachment
- Using 'MailTo' function in javascript, which does not add 'Attachment'
But none of them are apt for my requirement, where I need to add an attachment to the Default mail client on the user's system.
Is there any way to do that?
MailTo Option- Can I add attachment to this?
<asp:Button ID="btnSend" Text="Send" runat="server" onClientclick="OpenMail()" />
<script type="text/javascript" language="javascript">
function OpenMail()
{
location.href='mailto:dummy@gmail.com?subject=Message Title&body=Message Content';
}
</script>