Skip to content

Commit

Permalink
Add script to generate test emails
Browse files Browse the repository at this point in the history
  • Loading branch information
anlar committed Apr 16, 2017
1 parent fa4de85 commit 9588e7b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions bin/test-emails.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#! /usr/bin/env sh

#java -jar build/libs/LunaticSMTP-v0.3.0.jar -s -j &

#sleep 5

sendemail -s localhost:2525 \
-t [email protected] \
-f [email protected] \
-u Hello \
-o message-content-type=text \
-m test

#sleep 30

sendemail -s localhost:2525 \
-t [email protected] \
-f [email protected] \
-u RE: Holidays \
-o message-content-type=text \
-m test

#sleep 40

sendemail -s localhost:2525 \
-t [email protected] \
-f [email protected] \
-u RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: Holidays \
-o message-content-type=text \
-m test

#sleep 50

touch /tmp/dm.sh

sendemail -s localhost:2525 \
-t [email protected] \
-f [email protected] \
-u News \
-o message-content-type=html \
-a /tmp/dm.sh \
-m '<p>Hello,</p>
<p>Test <b>newsletter</b>, with <a href="https://github.com/anlar/LunaticSMTP">links</a> and images:</p>
<p><img src="https://en.touhouwiki.net/images/e/e0/GoMSigil-Reisen.jpg" height="200" width="200"></p>'

0 comments on commit 9588e7b

Please sign in to comment.