Commit 55e0d442 authored by Tristan A Spakes's avatar Tristan A Spakes

Need to test help and feedback - set to send to t0y

parent 91b82636
Pipeline #24632 passed with stages
in 1 minute and 3 seconds
#! /bin/bash
RECIPIENT='itsd-linux-workstations@ornl.gov'
RECIPIENT='t0y@ornl.gov' #itsd-linux-workstations@ornl.gov
SUBJECT="$1"
BODY="$2"
EMAIL="HELO ${HOSTNAME}
......
......@@ -7,7 +7,7 @@ const ipc = require('electron').ipcRenderer
//Send feedback email
function sendFeedback() {
if(!ipcRenderer) var ipcRenderer = require('electron').ipcRenderer
ipcRenderer.send('log', 'ORNL Toolbox: Submitted request to send help email', 'info')
ipcRenderer.send('log', 'ORNL Toolbox: Submitted request to send feedback email', 'info')
var cat = document.getElementById('feedbackCategory').value
var body = document.getElementById('feedbackTextBox').value
......@@ -41,6 +41,7 @@ function sendFeedback() {
if(body == "") {
alert('Please explain the issue')
ipcRenderer.send('log', 'ORNL Toolbox: Email body is blank - request aborted', 'err')
return
}
......@@ -50,6 +51,7 @@ function sendFeedback() {
execSync(command, (error, stdout, stderr) => {
if(stderr) {
alert(`${stderr}`)
ipcRenderer.send('log', 'ORNL Toolbox: Completed feedback email request', 'info')
}
})
......
#! /bin/bash
RECIPIENT='helpline@ornl.gov'
RECIPIENT='t0y@ornl.gov' #helpline@ornl.gov
SUBJECT="$1"
BODY="$2"
EMAIL="HELO ${HOSTNAME}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment