Generally we associate mailto with a hyperlink but we can also associate it with a Button or Image and also open the mailto email window using from server side event. ASP.NET Forums / General ASP.NET / HTML, CSS and JavaScript / Open client outlook email with attachment. Click Create and Google will generate an API key. ? Add static or dynamic attachments, dynamic parameters, captcha code and more. Open the folder where you have the file index.html and index.js, right click on the index.html file > open in the browser. open the file upload dialogue box onclick the image. I need to automatically open a user's default email client when they save some content on a page. // so that the form is always returned to the same address. Send emails with attachments using JavaScript - The CodePunker Once the browser loads the page, click on the button Send Email. Programmatically adding attachments to emails in C# and VB.NET Like communicating with other system or app, you will need to initiate a session in the first place. NOTE: body should filled with HTML content, and not specific to outlook. Check your spam folder if password reset mail not showing in inbox??? It can be manually added in Outlook as attachment. Manojjena. Send e-mail without attachment. Automatically open default email client and pre-populate content MailTo links are used to open the default email client application present on the user's machine in ASP.Net. It will open default e-mail client software or app. Posted 18-Sep-14 23:48pm. How to Send Emails From Javascript? - Netcore Cloud At last, in order to send an attachment just write the following code in sendMail() function: Attachments : [{ name : "File_Name_with_Extension", path:"Full Path of the file" }] So the final JavaScript code after the above configuration will look like as follows: Filename: index.html