Skip to content
Snippets Groups Projects
Commit 53603b8c authored by Florent Thiery's avatar Florent Thiery
Browse files

add print in send email function

parent b527cd0d
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,7 @@ def check_relay(): ...@@ -51,6 +51,7 @@ def check_relay():
print_green('STMP relay is properly set') print_green('STMP relay is properly set')
def send_test_email(): def send_test_email():
print('Sending test email')
global all_ok global all_ok
email = "noreply+%s@ubicast.eu" % random.randint(0, 1000) email = "noreply+%s@ubicast.eu" % random.randint(0, 1000)
cmd = 'echo "This is a test email" | mail -s "Test email from `cat /etc/hostname`" %s' % email cmd = 'echo "This is a test email" | mail -s "Test email from `cat /etc/hostname`" %s' % email
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment