GithubHelp home page GithubHelp logo

lib_powershell's Introduction

LIB POWERSHELL

  • Module Name: LIB POWERSHELL
    • Description: VGL POWERSHELL LIBRARY
      • Purpose: Library to provide easy implementation of various powershell tasks

This is a pure VGL implementation to call powershell task such as sending emails. It removes the need for third party programs like BLAT.

The routines are suitable for both foreground and background operations. This means they can be invoked from either MODE BACKGROUND or MODE INTERACTIVE.

This library does not have a user interface.

License

This work is published under the smile license. The details are behind the link, but the gist of it is

Do whatever you want, as long as you do something good (help someone out, smile; just be nice) and please don't sue

Attribution

  • Jingyu Sung : Original concept of powershell mail

Routines

PS_SENDMAIL

Send a email using powershell, without attachments. Plain text, body does not support HTML.

Parameters:

  • from_mail
  • to_mail
  • subject_line
  • mail_body
  • smtp_server
  • smtp_port
  • smtp_user
  • smtp_password

PS_SENDMAIL_ATTACH

Send a email using powershell, with attachments. Plain text, body does not support HTML.

Parameters:

  • from_mail
  • to_mail
  • subject_line
  • mail_body
  • smtp_server
  • smtp_port
  • smtp_user
  • smtp_password
  • attachments

MANUAL

Dependencies

This lib checks if powershell is installed on the target systems. If Powershell cannot be found the routines will not be executed

Installation

Routines in this library are GLOBAL. Add and compile this library and call the routines whenever desired.

All routines accept the necessary parameters as values to avoid forcing the programmer to code set names.

Example

JOIN LIBRARY lib_powershell
ps_sendmail(
	"[email protected]",
	 "[email protected]",
	 "This is the email subject",
	 "This is the email body text",
	 "mail.mymailserver.extension",
	 "25",
	 "[email protected]",
	 "Totally not my password"
)

The above example joins the powershell library, thus making it's routines available and then sends an email using the ps_sendmail routine.

lib_powershell's People

Contributors

bvdbasch avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.