Skip to content

Instantly share code, notes, and snippets.

@karlbaillie
Created March 21, 2013 15:12
Show Gist options
  • Save karlbaillie/5213800 to your computer and use it in GitHub Desktop.
Save karlbaillie/5213800 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# A very simple script to used to work with "swaks" to send white-label test messages
# to clients.
#
# Written by Karl Baillie
# [email protected]
# 15/11/2011
#
clear
echo -e "Email address the test is heading TO: \c"
read to
echo -e "Please detail the ticket ID: \c"
read tid
command="~/scripts/swaks --to '"$to"' --from [email protected] --h-From: 'Email Support <[email protected]>' --h-Subject:
Test-'"$tid"' --body 'This is just a test message, do NOT reply.';"
eval $command
echo -e "Test message '\033[1;31mTest-$tid\033[0m' attempted to '\033[1;32m$to\033[0m'!"
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment