Skip to content
Snippets Groups Projects
Commit dd94fe58 authored by Papeleux Luc's avatar Papeleux Luc
Browse files

fix import MIMEText in Py3

parent 6733d609
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,8 @@ class ParametricJob(PRMSet):
mail['Subject'] = subject
#mail.preamble = 'Battery result in attachement \n'
machineName = socket.gethostname()
from email.MIMEText import MIMEText
#from email.MIMEText import MIMEText
from email.mime.text import MIMEText
text = "Battery result on %s in attachement ...\n" % machineName
msg = MIMEText(text, 'html','iso-8859-1')
msg['From'] = fromA
......
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