Click here to Skip to main content
Licence 
First Posted 15 May 2006
Views 78,881
Downloads 2,551
Bookmarked 31 times

Sending Email From JavaScript using OutLook Automation

By | 22 May 2006 | Article
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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Kushan Thakershy

Web Developer

United States United States

Member

I am a student and right now pursuing post graduation in software development and management.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionHow could I change the name of the attachment? PinmemberRidwan Habbal23:31 18 Feb '09  
Generali acn't downlaod Pinmemberani.thettayil18:10 2 Feb '09  
GeneralSending a mail using Javascript PinmemberMember 337739118:05 17 Dec '08  
GeneralIn Internet, the browser throws error and outlook is not opening when attachment PinmemberBiru23:17 24 Sep '08  
QuestionActiveX control [modified] PinmemberMember 38938556:25 8 May '08  
I was wondering where can i find the ActiveX control to achieve this? I am using Visual Studio 2005 and Outlook 2003 ... I cann't find ActiveX in the list of references, so i'm assuming i have to download it... could someone please direct me in the right way please.
 
Thank you Smile | :)
 
modified on Friday, May 9, 2008 4:43 AM

AnswerRe: ActiveX control Pinmemberchandrasenareddybhumireddy19:02 1 Jul '09  
GeneralBrilliant!!! Pinmemberdipan_das5:32 17 Apr '08  
GeneralNice....you rock baby....;) Pinmemberahmarshi10:03 11 Jul '07  
Questioncan u make it general Pinmembermsamido6:45 19 Sep '06  
AnswerRe: can u make it general PinmemberUday Patil23:59 11 Feb '09  
Generalmaking it general.. Pinmemberakshatdon0:05 26 Jul '06  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120529.1 | Last Updated 22 May 2006
Article Copyright 2006 by Kushan Thakershy
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid