This is a sample of how to create service which extends the OrchestratorBaseService using the Build Tools.
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorPluginMailService.ts
import{ResourceElementAccessor}from"com.vmware.pscoe.library.ts.util/ResourceElementAccessor";
import{BaseService}from"../BaseService";
exportclassOrchestratorPluginMailServiceextendsOrchestratorBaseService{
private strDefaultContentType:string="text/html; charset=UTF-8";// TO DO - SS - Use a Config Element
private strEMailFromAddress:string="no-reply@cloudbuildtools.com";
private strEMailFromName:string="No Reply;
private strSMTPHostFQDN:string="smtp.office365.com";
private intSMTPHostPort:number=587;
private arrDefaultMimeAttachment:MimeAttachment[]= [];
constructor(strProjectID:string){
super(strProjectID,"PluginMail");
}
}Class Functions:
- Orchestrator Function: E-Mail Message Send
- Orchestrator Function: E-Mail Message Send Enhanced
- Orchestrator Function: Send an E-Mail with An Attachment
Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
