tci-wi-smalltools-extension

module
v0.0.0-...-96d897f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2019 License: MIT

README

TCI WI SmallTools Extension

Go Report Card

Small Activities around Concat, Email Validation, HTML EMail creation, HTML EMail Sender, more to come. Attached ZIP contains the first release v.1.2 and can just uploaded under TIBCO Cloud Integration Extensions

This is just the start.

Activities

available Activities so far

Concat

This activity is just using GO, and no UI customization using TypeScript, etc. Just to show how simple a Implemenation could be.

Input

  • string1 (String)
  • string2 (String)
  • Seperator (String, one of ";","-","+","_","|" Default is "-") part of Configuration Dialog

Output

  • result (String) as full String
EMail Addr Validation

validates an EMail Addr

Input

  • Email Addr (String)

Output

  • valid (Boolean) just Format check
create HTML

Tool creates a pretty HTML page to store e.g. into an Email body of an HTML SMTP EMail Sender.

Input

  • templateURL (String) ... sample stored in the activity template Folder
  • LogoURL (String)
  • Headline (String)
  • Body (String)
  • DirectLinkURL (String)
  • Footer (String)

Output

  • valid (Boolean) just Format check

Example HTML string content as Screenshot

Pretty Email image

send HTML Email

send HTML Emails with the Content of of the create HTML Activity, fully tested with Google SMTP Mail. Implementation is limited to what is realy needed to send a single Notification EMail. You have to use 2-factor authentication with your Account to use this Extension. Account must be enabled for 'access to less secure apps for all users'. https://support.google.com/a/answer/6260879?hl=en

Input

  • Server (String) part of Configuration Dialog : default "smtp.gmail.com"
  • Port (String) part of Configuration Dialog : default "587"
  • Sender (String) part of Configuration Dialog
  • Pass (Password) App specific Password part of Configuration Dialog (see here for Detail https://support.google.com/accounts/answer/185833?p=InvalidSecondFactor)
  • To (String)
  • Subject (String)
  • HTML (String)

Output

  • feedback (String) on success always "done" so far

Note: more TCI Extensions can be found here: https://tibcosoftware.github.io/tci-awesome/

Directories

Path Synopsis
smalltools
activity/sendHTMLEmail
inspired by https://github.com/jpoehls/gophermail
inspired by https://github.com/jpoehls/gophermail

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL