Error SMTPSendFailedException: 530 authentication required when I try to send logs odi post odi 11g?

Hello

I used jython code below, to send mail from odi. because I created the procedure in odi called as emailodi

I have put this code in the command on the target. Technology of jython code.

"import smtplib

import string

BODY = string.join (())

« De : %s » % ' [email protected] ',

“To: %s” % ‘ [email protected] ',

"Subject: %s ' % 'ODI Mail."

“”,

"This is a letter 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 ("[email protected]', [' [email protected]'], BODY ')

sender. Close() '.»


Using this code. I am able to send mail however odi what I wrote in the subject.

My requirement is I want to send the logs odi to mail...

for this, I tried,

I took odiexportlog tool & this procedure above placed in the package.


After execution of this package.

I get the error like...


ODI-1226: OdiSendMail step 3 fails after 1 attempt.

ODI-1241: Oracle Data Integrator tool execution fails.

Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 authentication required.



Thank you and best regards,

A.Kavya.



Hello

To send a that odi saves the file in Mail,

I did like.

1. I created a procedure (named log_data_success) to load data from oracle database (like snp_session error log table) to the text file,

for this I used the odisqlunload tool in commnad Panel. technology tools odi.

"OdiSqlUnload «-FILE=D:\TEXT\sucess_log.txt" "-DRIVER = oracle.jdbc.OracleDriver" «-URL=jdbc:oracle:thin:@192.0.0.0:1521:odi ' '-USER = odi ""-PASS = hpfHiT7Ql0Hd79KUseSWYAVIA ' "-FILE_FORMAT = VARIABLE" "-FIELD_SEP = |  ""-ROW_SEP = \r\n "" "-DATE_FORMAT = YYYY/MM/DD hh: mm:" "-CHARSET_ENCODING = ISO8859_1" "-XML_CHARSET_ENCODING = ISO-8859-1".

SELECT * from snp_session

2. After performing the procedure described above. I got the log file in the file.



2. then, I created another procedure (named success_mail) to attach the log file above to mail.

path of the file to log for this i have used code in jython, to this we must add the smtp address, the port, the credentials of mail, the code below

Import smtplib, os

enamel. MIMEMultipart MIMEMultipart import

enamel. MIMEBase import MIMEBase

enamel. MIMEText MIMEText import

enamel. Utils import COMMASPACE, format

E-mail import encoders

FROM = ' [email protected]'

= ' [email protected]' # must be a list

SUBJECT = "today_odi_sucess_log_status."

TEXT = "this is a message that is automated; "Please do not respond to this message"

SERVER ='smtp. XXX XXXX.'

PORT = 25

USERNAME = "abd_cheuan".

PASSWORD = "xxxxxxx".

message = MIMEMultipart()

message ["Subject"] = OBJECT

message ['From'] = FROM

["message"] = to

message. Attach (MIMEText (TEXT))

part = MIMEBase ("application", "octet-stream")

part.set_payload (open('D:\TEXT\sucess_log.txt', 'rb') .read ())

Encoders.encode_base64 (part)

part.add_header ('Content-Disposition", 'attachment; filename =' +'sucess_log.txt')

message. Attach (share)

s = smtplib. SMTP (SERVER, PORT)

s.Login (username, PASSWORD)

s.sendmail ('[email protected]','[email protected]', message.as_string ())

s.Quit ().

3. after that, I created a single package. I added above two procedures in the package diagram.

4. after the execution of this package, I received the email from odi.

its working fine.

to resolve this problem, I used this link

Send mail to ODI using Gmail CredentialsDW team

Thanks & regrads,

A.Kavya

Tags: Business Intelligence

Similar Questions

  • Error message: not enough memory when you try to send an e-mail in Outlook Express

    original title: in Outlook Express when I try to send a large file by email I Get A Message not enough memory. What does that mean?

    In Outlook Express when I try to send a file by Email I get a not enough memory Message. What does that mean?

    What is the size of the file? It may be on the edge of your server.
  • I get an error message in Outlook Express when you try to send, transmit, or respond to any e-mail: "the connection to the server has failed."

    original title: Outlook Express

    The connection to the server has failed. Account: 'pop.4wbi.com', server: 'mail.4wbi.com', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 10060, error number: 0x800CCC0E is what I get every time I try to send, transmit, or answer

    I have outlook Express 6, Windows XP, I would appreciate any help you can give me

    I don't know what I was supposed to check on the Forum, Feedback & product

    Thank you, Karen

    At first glance, it seems that a few things wrong with the settings you have for a server outgoing (SMTP). I think that Westphalia broadband uses mail.4wbi.net as the incoming and outgoing mail server, not pop.4wbi.com (note mail instead of pop ) and .net instead of .com. These are the servers listed in this article:

    I'm not ensure that these settings are correct. Rather I suggest to find the page to set up your own mail server and use the parameters described in this.
     
  • Windows Mail error 554 service unavailable message when you try to send an e-mail.

    I have an email address that can not receive mail sent by me by e-mail from windows, but they can if I send it through my ISPs web mail. This has been a problem for the past few weeks after being able to use it for months.

    I have an email address that can not receive mail sent by me by e-mail from windows, but they can if I send it through my ISPs web mail. This has been a problem for the past few weeks after being able to use it for months.

    When you repost to network, e-mail and put online...

    Please post the FULL error message. Not only does the code 544.
    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Unable to get Windows Mail to send or receive. Get this message error code when you try to send: account: "Windows Mail".

    original title: Windows Mail

    Unable to get windows mail to send or receive.  Get this message error code when you try to send:

    Account: 'Windows Mail', server: 'pop.emailsrvr.com', Protocol: POP3, server response: '.', Port: 110, secure (SSL): no, error number: 0x800CCC18
    0x800cc0E error code received when you configure the ACCT.     POP3 and SMTP servers are: pop3.email.msn.com.  SMTP.email.msn.com.
    To find these server addresses, took some time to locate.  After locating and entering, using authentication
    sign username and password, he kept sign asking repeatedly.
    Any help on these questions would be appreciated.
    POP3 and SMTP servers are: pop3.email.msn.com.  SMTP.email.msn.com.
    To find these server addresses, took some time to locate.

    POP3/SMTP settings for an MSN e-mail account are on this page. That's more than three years, Hotmail includes the MSN e-mail accounts.

    Hotmail has its own support at the Windows Live Solution Centerforums. Please address any other question you may have on one of the forums on the right side of this page.

    Noel

  • error when I try to send email

    OK, I promise you that this will be the last time for a while, I turn to you guys for help.

    I am trying to connect to an external smtp server using the bytearray class:

    var myMailer:SMTPMailer = new SMTPMailer ('outbound.mailhop.org', 2525);

    myMailer.authenticate ('password' 'login'( )

    myMailer.addEventListener (SMTPEvent.MAIL_SENT, onMailSent);

    / / event sent when the mail could not be sent

    myMailer.addEventListener (SMTPEvent.MAIL_ERROR, onMailError);

    / / event sent when SMTPMailer is correctly connected to the SMTP server

    myMailer.addEventListener (SMTPEvent.CONNECTED, onConnected);

    / / event sent when SMTP server has disconnected the client for different reasons

    myMailer.addEventListener (SMTPEvent.DISCONNECTED, onDisconnected);

    / / event sent when the client is successfully authenticated

    myMailer.addEventListener (SMTPEvent.AUTHENTICATED, onAuthSuccess);

    / / event sent when the client is unable to authenticate

    myMailer.addEventListener (SMTPEvent.BAD_SEQUENCE, onAuthFailed);

    myMailer.sendHTMLMail ( " ""[email protected]"""" " "[email protected]"" ", "test smtp" "< br > < b > HTML photo :) < /b >");

    It seems to connect very well, but when I try and send the email, this is the error I get:

    554 SMTP synchronization error

    I have never seen this error before, and when I try and google it it not is really not much info on what causes the problem or how to fix it.

    I've left speechless you guys before, but I hope that this is not one of these issues!

    Thank you

    Jorge

    Okay, that was weird. When I tried another smtp server, it seems fine. I think that the previous smtp Protocol wanted to use the ssl connection. Thanks for your help! _

  • I get Windows Live Mail error ID: 0x800CCC6E when I try and send an email to a group of 100 or more. How can I fix it?

    I get Windows Live Mail error ID: 0x800CCC6E when I try and send an email to a group of 100 or more. How can I fix it?

    Hello

    When you use Windows live mail and the question you have posted is related to Windows Live, so it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

    Windows Live Mail Forum

    http://www.windowslivehelp.com/forums.aspx?ProductID=15

  • When I try to send a picture through Windows Live Mail I get an error message telling me to delete the picture, and then try again.

    When I try to send a picture through Windows Live Mail I get an error message telling me to delete the picture, and then try again.

    original title: RECEIVES the MESSAGE of ERROR WHILE SENDING AND RECEIVING PHOTOS

    Hello Jane,.

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

     

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

     

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • Help! I get the error message 0 x 80190194 when I try to enable Windows Update in Windows XP Professional

    Help! I get the error message 0 x 80190194 when I try to enable Windows Update in Windows XP Professional

    Current solution: download IE8 for XP, run who, follow the Setup Wizard, wait for his failure. Download manually upgrade restart, recommended.

    Restart the installation of IE8, wait that he remove previous IE. Reset.

    Installation of IE8 restart to restart. Let it run. May need to restart.

    Try to run windows update again. IF it works, woot, otherwise download the SP3 of XP service pack from Microsoft. As the Windows update fails, you must not download an installer, but an ISO standard. Burn the ISO to a CD and install (way to go...) or download a free tool like 7Zip and unpack iso and install a go from there.

    From there on, the installation of SP3 and hope this works...

  • I now get [error number: 0 x 80070424] when I try to use windows update.

    I now get [error number: 0 x 80070424] when I try to use windows update. Also I can not update microsoft UAA!

    Hi KirkOKC,

    Follow the steps described in this document to resolve the Windows Update error 0 x 80070424.

    Let us know if that helps.

  • When I try to send emails via outlook express, I get the following error message:

    When I try to send and email using Outlook Express, I get the following error message:

    The connection to the server has failed. Account: 'HotHot', server: 'smtp.live.com', Protocol: SMTP, Port: 25, secure (SSL): Yes, Socket error: 10060, error number: 0x800CCC0E

    Any help gratefully received. David

    Ok thank you. I received three messages from you, two of the demon and the other Hotmail.

    Hotmail has helpfully includes the originating IP address, so I was able to check further. There is no WHOIS data for it (a bad sign to start), but it is not in the CBL. Read this page to see why it is listed and take the appropriate action. Once you are convinced that your computer - and another using the same network - are clean, you can use the link at the bottom of the CBL page to remove from the list the IP address.

    I still don't know where FCMA comes into it, and diagnostic tests in the NDR is incorrect. It is not the content of the message that is at fault, but I suspect that the block list.

    Good luck!

  • Why, when I try to send or to send an email with an attachment I get the error message "Attachment Id has wrong format"... ?

    Why, when I try to send or to send an email with an attachment I get the error message "Attachment Id has wrong format"... ?

    Hi AndyHolman,

    ·         What email program are you using?

    ·         What is the attachment file extension?

    Try to remove your automatic signature in your mail and see if it solves the problem.

    Please provide us with some information so that we can help you solve the problem.

    You can also contact you Email Service Provider (ESP) for assistance on the issue.

  • I tried to send an email in Colombia and I got an 0x800CCC79 error message now when I try to send anything this message appears

    I tried to send an email in Colombia and I got an 0x800CCC79 error message now when I try to send anything this message appears.

    The message cannot be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'gzdaher@gmail '. 'Hi', account: ' pop - server.wi.rr.com', server: ' smtp - server.wi.rr.com', Protocol: SMTP, server response: 450 4.1.8 - field of the recipient is not resolved [R0309001]', Port: 25, secure (SSL): no, Server error: 450, error number: 0x800CCC79.
    How can I get rid of him?
    Lori

    'gzdaher@gmail '.

     
    This isn't a complete address. Add the ".com" and see it go.
     
  • Error message "a program could not start. Please try again"when I try to send Remote Assistance invitation.

    original title: Remote Assistance does not work

    Win XP PRO SP3

    Question #1:

    When you try to send an invitation to support remote I get an error message "a program could not start. Please try again. »

    This error pops up before even the invitation is created, so the problem is with the creation of the invitation and not with problems of subsequent connection between the computers. The invitation is never created. This happens on several computers I own or maintain.

    The event log records all errors when this happens.

    I searched for hours all over the Internet and a lot of people seem to have this problem. Some it is resolved, for the most part, they needed to start a service, but the cause of their problem is not the same as mine.

    After restarting the computer, sometimes the invitation creation works fine.

    Other DIY suggests when the problem appears it can be corrected by running the command 'sessmgr-service' in a command line window. After executing this line it seems that the problem is resolved.

    What I find disconcerting is that Sessmgr.exe is the service Remote Desktop Help Session Manager that was already running, but for some unknown reason runs this line made work again right. I'll have to experiment more.

    Is it possible to debug and fix this?

    Question #2:

    When I can finally send an invitation it will work on the local network but not on the Internet. I can't connect to the Internet.

    I'm looking at the structure and the content of the invitation to http://msdn.microsoft.com/en-us/library/cc240167(v=prot.10).aspx
    In the example given here, as in the generated invitations in my experiences, the invitation contains only the LAN IP addresses (with port number) but no global address.
    RCTICKET =... 192.168.1.65:3389; Jeff: 3389

    How the computer expert is supposed to understand the global address to which it should connect is a mystery to me.

    How can I get Remote Assistance to work on the Internet?

    Hello

    The issue of Windows XP, you have posted is better suited for the IT Pro TechNet public. Please ask your question in the TechNet forums for assistance.

    Hope the helps of information.

  • When I try to send email in Outlook Express I get an error: "0x800CCC0E.

    original title: outlook express

    I JUST HAD TO CHANGE MY HARD DISK I HAVE BELISVE I HAVE CONFIGURED OULOOK EXPRESS TO WORK WITH HOTMAIL IT IS ABLE TO RECEIVE MAIL, BUT WHEN I TRY TO SEND A MAIL I GET THIS ERROR

    0X800CCC0E WHAT SHOULD I DO, I HOPE I CHOSE THE RIGHT FORUM

    Thank you

    TK

    See:

    http://support.Microsoft.com/kb/220852/en-us 
    How to configure Outlook Express to use a Hotmail account

    and

    http://support.Microsoft.com/kb/878462/en-us 
    You receive an error message when you use Outlook Express or Outlook to access your Hotmail account

Maybe you are looking for