Giter VIP home page Giter VIP logo

openoutlook's Introduction

openOutlook.js

Written by Adam Nielsen <[email protected]> https://github.com/adam-nielsen/openOutlook

This JScript code reads in the XML file given on the command line and uses it to open a new preformatted e-mail in Outlook, ready to be sent. It supports full HTML content in the message body, with embedded images and other attachments.

This file is placed in the public domain. Feel free to use it for anything you like. There is no warranty - if it breaks you get to keep both pieces.

Usage:

wscript openOutlook.js data.xml

Where data.xml looks like:

<mail>
  <to>Adam Nielsen</to>
  <to>John Smith</to>
  <cc>Someone else</cc>
  <bcc>Bob Jones</bcc>
  <subject>Test message</subject>
  <body href="msg.html"/>
  <attachment cid="cid:1" href="example.jpg">Embedded image</attachment>
</mail>

All fields are optional. The "cid" can be used with attachments to link to embedded images from within the message body, like <img src="cid:1" />

The message body can also be specified inline:

<body>Plain text message</body>

And the XML file can also be specified in the strFilename variable below.

Note that angle brackets still need to be escaped as < and > in the message body.

This script is a text file, so make sure it uses DOS (CRLF) line endings or it will not run.

This has been tested with Outlook 2007 and Outlook 2010. Earlier revisions worked better with Outlook 2003.

openoutlook's People

Contributors

adam-nielsen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

barrypratt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.