Skip to content

Instantly share code, notes, and snippets.

@danmilleruk
Created March 8, 2013 12:36
Show Gist options
  • Save danmilleruk/5116202 to your computer and use it in GitHub Desktop.
Save danmilleruk/5116202 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
# 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