Created
March 21, 2013 15:12
-
-
Save karlbaillie/5213800 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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