Sending Email From JavaScript using OutLook Automation






2.60/5 (17 votes)
May 15, 2006

156337

6128
This is a client side script to send emails using Outlook Express. You can add this script on a click event of a button on your ASP.NET page; this script will create a mail message (to, from, cc, attachments, body) and open Outlook Express with these data and let you send the same email.
Introduction
Sometimes we have very specific requirements for sending emails. I had faced the same problem. Our client wanted to send email by only using Outlook 2003. The Office 2003 was installed only on the client machine, so I had to create a client side code to send an email through Outlook Express 2003. I could easily send email with ASP.NET and SMTP protocol, but the client wanted to use Outlook 2003 to send an email, which inspired me to write the following code. The code is written in JavaScript and ASP.NET.