'Error in ODI 12c for email notification- jython code
While running ODI 12c package, there is send email notification written in jython. But email notification fails and does not proceed. Can someone pls help on this or Am I missing something.
The error is
SyntaxError: ("mismatched input '\\n' expecting RPAREN", ('<string>',11, 38, "sender =smtplib.SMTP('#G_SMTP_SERVER',#G_SMTP_PORT)\n"))
The code is
import sys
import smtplib
import MimeWriter
import base64
import StringIO
import os.path
import javax.activation.MimetypesFileTypeMap as MimetypesFileTypeMap
mType = MimetypesFileTypeMap()
sender = smtplib.SMTP('<%=snpRef.getOption("Host")%>',<%=snpRef.getOption("Port")%>)
I gave the host name correct but still its says the same error.
Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
