@@ -177,6 +177,12 class SchainNotify: | |||
|
177 | 177 | |
|
178 | 178 | def sendEmail(self, email_from, email_to, subject='Error running ...', message="", subtitle="", filename="", html_format=True): |
|
179 | 179 | |
|
180 | if not email_to: | |
|
181 | return 0 | |
|
182 | ||
|
183 | if not self.__emailServer: | |
|
184 | return 0 | |
|
185 | ||
|
180 | 186 | msg = MIMEMultipart() |
|
181 | 187 | msg['Subject'] = subject |
|
182 | 188 | msg['From'] = "(Python SChain API): " + email_from |
General Comments 0
You need to be logged in to leave comments.
Login now