summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2016-09-16 10:42:59 -0300
committerTulio Casagrande <tcasagra@thoughtworks.com>2016-09-16 10:42:59 -0300
commit0fdec5f71fd0ba4920551473c1665744e9b2ee4a (patch)
treea19d6ebbd7ba05d7e69494f6d5f5e19d6b1a2bc4
parentd3c1caf8fce568fa0964be81c309c1eb2de8ac4b (diff)
Add script to send mail to multiple users for testing
-rwxr-xr-xservice/test/load/send_emails_batch.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/service/test/load/send_emails_batch.sh b/service/test/load/send_emails_batch.sh
new file mode 100755
index 00000000..80c28279
--- /dev/null
+++ b/service/test/load/send_emails_batch.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+for user in `seq $1`; do
+ echo "Sending $2 mails for user loadtest$user"
+ for email in `seq $2`; do
+ sendemail -f loadtest${user}@dev.pixelated-Project.org -t loadtest${user}@dev.pixelated-project.org -u Hello$email -m Ha$email
+ done
+done