FDMEE Jython Script Email Notification
Hi Everyone ,
The script below should work in Fdmee , but for some reason I receive an error . I Update the script originally extracted from FDMEE admin Guide .
import smtplib
sender = "User1@company.com"
receivers = "User2@company.com"
message = """ This is a test e-mail message.This is a test e-mail message. """
try:
smtpServer = smtplib.SMTP('smtp-mail.outlook.com',587)
smtpServer.starttls()
smtpServer.login("User1@e,mail.com", "Password")
smtpServer.sendmail(sender, receivers, message)
print "Successfully sent email"
smtpServer.quit()
the error I got related to line no 6 is "line 6 smtpServer = smtplib.SMTP('smtp-mail.outlook.com',587) ^SyntaxError: mismatched input 'smtpServer' expecting INDENT"
any help will be appreciated .