Hi,
I have used below jython code, to send mail from odi. for i have created procedure in odi named as emailodi
I have place this code in command on target. Technology jython code.
''import smtplib
import string
BODY = string.join((
“From: %s” % ‘admin@odi.com’,
“To: %s” % ‘support@dwteam.in’,
“Subject: %s” % ‘Mail From ODI’ ,
“”,
‘This is a mail from ODi Studio. Thank You. keep visiting www.DwTeam.in’
), “\r\n”)
sender = smtplib.SMTP(‘smtp.gmail.com’,587)
sender.set_debuglevel(1)
sender.ehlo()
sender.starttls()
sender.ehlo()
sender.login(‘GMAIL_USER_NAME’, ‘PASSWORD’)
sender.sendmail(‘admin@odi.com’,['support@dwteam.in'],BODY)
sender.close() ".
Using this code. i am able to send mail though odi what i have written in the subject.
My requirement is, i want send odi logs to mail...
for this i tried,
i have taken odiexportlog tool & this above procedure placed in package.
after execution of this package,
i am getting error like..........
ODI-1226: Step OdiSendMail 3 fails after 1 attempt(s).
ODI-1241: Oracle Data Integrator tool execution fails.
Caused By: com.sun.mail.smtp.SMTPSendFailedException: 530 authentication required.
Thanks & Regards,
A.kavya.