Created
March 8, 2013 12:36
-
-
Save danmilleruk/5116202 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# kb@sub6.com | |
# 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 test@test.com --h-From: 'Email Support <test@test.com>' --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