ODI send mail problem

Hi,
i am trying to send mail via ODI send mail package and getting error below,
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
any advise pls
thank you

ODI is sending the email without a password which is the behavior of OdiSendMail.
Where as your mail server is looking for a authenticated mail i.e. which has password , this is why you are getting this error.
For OdiSendMail , use a mail server which does not requires an authentication
Else use customized Jython mail sending procedure ... see details in ODIsendmail error

Similar Messages

  • Regarding odi send mail

    Hi all,
    There is problem with odi send mail error, after the all suggestions, i get answer for it requires jython procedure, and i downloaded from oracle site also...
    can any one please teach me where should need to implement/kept for sending mails.
    please help me....
    our network is popmail.bizmail.yahoo.com...
    please share any docs/links to this mail id: [email protected]
    Regards,
    surya.

    Here are two ways to send an e-mail
    1) Use the ODISendMail function in an ODI Package.
    To use this function drag the ODISendMail reference onto the Package window, join it to the Package flow, click on the function icon and supply Mail Server (SMTP Server Name), From (Me), To (Distribution), CC (Copy), BCC (Blind Copy), Subject, Attachment, and Message Body in the window that appears.
    I use this function to signal success or failure of a package or package step.
    To do this I only supply only the Mail Server, From, To and Subject. I don't need anything else to report success or failure.
    Here's a sample Subject:
    <%=snpRef.getSession("CONTEXT_NAME")%> <%=snpRef.getSession( "SESS_NAME" )%> <%=snpRef.getStep("STEP_NAME")%>
    The STEP_NAME holds the success/failure message
    I don't use the Message Body or Attachment.
    2) The procedure shown in the reply defines a Jython function to send an e-mail with Subject and Message Body using Mail Server, From and To values stored in a Jython dictionary. The Jython version is very old (release 2.1 or 2.2) so there are more elegant ways to write the function. Jython uses white space to control program flow which the Form editor deletes. Here's a verson of the code with leading periods in the code to preserve the white space and with comments on each line. Comments start with a # character and extend to the end of the line.
    Dict = {} # This holds the global parameters
    Dict['ToString'] = '[email protected]' # you supply the value
    Dict['FromString'] = 'FromFromFrom' # you supply the value
    Dict['SMTP'] = 'My Mail Server' # you supply the value
    import smtplib #These are the Jython library routines needed to send the e-mail
    def SendMail(MessageSubject,MessageLines): # This is the function definition
    . global Dict # Point to the Dictionary
    . Subject = '%s %s %s' % (Dict['Context'],Dict['Session'],MessageSubject) #Build the Subject Line
    . MessageString = '' #Initialize the Message String
    . for ReportLine in MessageLines: # Add the callers message lines to the Message String (each line here ends in a newline \n)
    . MessageString = '%s%s' % (MessageString,ReportLine)
    # The next statement builds the actual e-mail message according to a very strict format. Understanding the format is hard
    . Message="From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%s" % (Dict['FromString'],Dict['ToString'],Subject,MessageString)
    . server = smtplib.SMTP(Dict['SMTP']) # Setup the Mail Server
    . server.sendmail(Dict['FromString'],Dict['ToString'],Message) # Send The Message
    . server.quit() # Stop
    # Here we build a sample message
    ReportSubject = 'This is a Test Message'
    Report = []
    Report.append('First Line\n')
    Report.append('Second Line\n')
    Report.append('Last Line\n')
    # Send the Message
    SendMail(ReportSubject,Report)
    If you're not familiar with Jython, this still won't make much sense, but Jython is not hard to learn, and this example is not very complicated.

  • ODI Send Mail tool is sending thousands of mails

    Hi,
    In one of my ODI packages i have used ODI send mail to send the success notfication mails with error and log files attached.
    It worked fine for a long time but today we have received nearly 9000 mails from this.
    this package is loading data in to essbase and executing a calc script. while the package is in running mode, we killed the script from EAS as it is executing for more than double the time it do normally. Then immediately mails flow has been started. that too " success mails " . (we have two send mails- one for success and the other for failure notice).
    I tried to figure out the problem. there were no changes. Except the "To" field. we gave the all the recipients emails separated by commas instead of adding a new line for each recipient. I executed a new send mail command with the same way (TO field). It executed fine.
    Can any one help me to debug the error? is it caused by essbase/send mail? or any other reasons?
    Thanks in advance :)

    Thanks for your reply..
    yes it was looped. but how the success mail was kicked off ?. we killed the script in Essbase so the package should execute failure mail step. Instead it executed the success mail.
    any clue on this pls ?

  • Using ODI send mail tool in procedure

    Hi,
    I want to use an ODI send mail option in procedure when certain condition is met.
    for example:
    I have one table "Dummy_table" as
    Dummy_table
    PRODUCTID
    PRODTYPE
    PRODCODE
    11111
    A
    11111
    22222
    A
    22222
    33333
    B
    33333
    00000
    A
    00000
    And a procedure which is trying to insert records in above table. In this procedure i want to add validation and when the validation is true, need to send mail.
    Mail to be triggered:
    If PRODUCTID already exists in table then do not insert record with same PRODUCTID in table. Instead of that, call an ODI send mail tool from the procedure which is trying to insert duplicate entry.
    Let's say my procedure is trying to insert record with PRODUCTID = "22222" . In this case, i dont want an entry to be inserted as it is already present. I want a mail to be triggered saying that this record is already present.
    Any help would be highly appreciated.
    Thanks in advance.
    Shilpa

    Sure, please follow the steps:
    1) First import one CKM to your project. If you are working with Oracle then you could use "CKM Oracle";
    2) Open your Interface and go to "Controls" tab and select your "CKM Oracle" in CKM Selector combo box. Pay attention to the CKM options and change them accordingly to your needs;
    3) Go to "Models" tab and search for your "Dummy_table" model;
    4) Expand "Dummy_table" model and right click "Constraints" -> New Condition
    5) Give it a name, select Type = "Oracle Data Integrator Condition" and then write down a SQL that will indicate which are the valid values that should be loaded to your target table. In your example, it should be something like this (DUM being the model table alias):
    DUM.PRODUCTID NOT IN (SELECT T1.PRODUCTID FROM Dummy_table T1)
    This query is telling ODI that only the rows with PRODUCTID that does not exists in the target table are valid. All the rest (in this case all rows that already exists in the target table) should be logged in E$ table.
    Please let me know if it worked.
    Thanks.

  • ODI Send Mail

    Hi all,
    I have few packages running every week in my project. Each package have an ODI send mail utility which sends an email notification whether the job is running successfully or not. I want to get the number of updates or inserts done by a particular package when it is run every week along with success or failure email. How can I achieve this. Please guide me.
    Thanks

    Hi,
    under my opoinion the better way is to create a LOG_ODI_AUDIT table that logs for you some imformation.
    An example (not tested) could be
    insert into LOG_ODI_AUDIT
    ODI_SESSION,
    N_INS,
    N_UPD,
    N_DEL
    SELECT
    <%=odiRef.getSession("SESS_NO")%>,
    <%=odiRef.getPrevStepLog("INSERT_COUNT")%>,
    <%=odiRef.getPrevStepLog("UPDATE_COUNT")%>,
    <%=odiRef.getPrevStepLog("DELETE_COUNT")%>
    FROM DUALafter this you can retrieve all your information with a select from the table
    Let me know your feedback

  • ODI Send Mail- To List

    Hi all,
    I want to use the odi send mail tool, and send the same mail to a large number of people, whose email id's have been retrieved from a database table.
    Kindly guide me as to how to retrieve a set of email id's from the databse and add them in the "to" list of Odi send mail tool.
    I thought of using a refreshing variable , but the refreshing variable should only return a single value. so this wont help.
    Kindly help.
    Thanks in advance.

    Hi,
    You can enter the email id's in table separating each with a comma (,). The email id's should be entered against a unique identifier, say your interface name.
    Insert a variable in ODI and in its refreshing tab put "select email_id from your_table where interface_name='your_interface_name".
    Use this variable in ODISendMail.
    Hope this helps!
    Ritika

  • Germany - sending mail problem

    as many before am not able to send mail from my private email account - neither via edge nor when using wifi. However it works from my .Mac account. It is an SMTP issue. My ISP tells me that the server drops after ehlo. In order to gather some more information, I have this question to the proud folks sporting a new t- mobile iPhone since Friday:
    What SMTP server is recomended by t-mobile when sending via edge (if they do recomend one at all)?
    Anyone having the same problems out there with an idea why theserver may drop conection and a work around (other than using a different ISP)
    Thanx,
    Christoph

    Not sure but since .Mac's SMTP server is authenticated and this works when sending messages from the iPhone with your .Mac account, this indicates your ISP's SMTP server is not authenticated or something else is wrong.
    Did you transfer the account settings from your computer to the iPhone via the iTunes sync process?
    If so, try deleting the account and manually recreating the account on the iPhone but if this works and you did transfer the account settings from your computer to the iPhone via the sync process, be sure to deselect this option before the next sync or your changes made on the iPhone will be overwritten.

  • Send mail problem

    hello
    pleze i tried to send mails from a servlrt in my application
    i tried it from a sample in tomcat sendmail.jsp which is connect with
    a servlet that manuplates the name and content for tha mail
    the problem is
    i can't do it from my application which take this servlet and
    put it in WEB-APP in the Root it gave me an exception
    javax.naming.NameNotFoundException: Name mail is not bound in this Context
    pleze help how can i manuplate with it to put it in my application in root
    thanx

    u've got to put your code on the screen so we can have a look at what u might be doing wrong

  • Yet another can receive, but can't send mail problem.

    I’m having trouble with Mail. I have reviewed the various posts by others who have a similar problem. I’ve tried their suggestions, but none have worked for me. I just bought a new G5 PowerMac. I have set the account preferences exactly like my PowerMac G4 and PowerBook G4, but I cannot send messages on any account. I can receive messages. When I try to forward a message by clicking the forward button, nothing happens - no new reply window appears. Likewise, when I compose new message and click the send button nothing happens. My setting are correct and the same as the other Macs noted above. Both of them will send and receive messages using the same DSL connection as the G5. I have two hard drives on my G5 both with OS 10.4.3 installed. I use the second drive to start up on when I have trouble with my main drive. I started on the other drive, which had no mail settings, and tried to set up my accounts. In this case I got a message stating that the mail server could not be accessed. I went ahead and set the accounts anyway, then made sure the settings were correct. This implies that there is something wrong with my new G5 or there is a bug with Mail using the G5 since I have no problems with the other Macs. I haven't time to contact the help line and hope someone knows how to fix this problem.

    Hi Dancing Brave,
    Thanks for visiting Apple Support Communities.
    I recommend starting with the steps in this article if you are not able to send mail:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Best,
    Jeremy

  • Send Mail Problem with .Mac

    I cand send mail successfully from other accounts configured on the phone(both POP and IMAP), but I get errors when sending from my .Mac account.
    I found this article:
    http://www.wireless.att.com/support/knowledgeBase.do?content=KB72769.html
    ...but .Mac account config pages on the iPhone don't provide a field for Outgoing Server to change. Actually, this article fixed the problem with my other accounts.

    Thanks for the reply, Nathan.
    I had already found that article. Snip below...
    iPhone includes preset configurations for many of the
    popular providers such as Yahoo! Mail, Gmail, .Mac,
    and AOL, and in most cases sending mail will just
    work.
    However if you are using a different provider
    than above...
    Unfortunately, if you select ".Mac" for type of
    account, the configuration screen does not provide a
    field at all for Outgoing Server. This suggestion
    only works if you are not using one of the providers
    listed. It is apparently hardcoded by Apple when you
    choose ".Mac". I also tried to fool it by creating a
    generic IMAP account, but providing my .Mac info.
    This didn't work either.
    then don't select .mac, just select "Other", then select POP (or IMAP).
    incoming mail server: mail.mac.com
    outgoing mail server: smtp.mac.com:587
    enter in your username and password
    i set up my .Mac email manually by selecting "Other" and choosing POP and it is working fine.

  • Sending mail problems -- help

    hello all,
    I have two databases one in a DMZ and one that is not call it (local)
    On local I have created a mail procedure that can send mail to users.
    The same procedure does not work on the machine in the DMZ.
    I thought it might have something to do with being in the DMZ
    so I created an account in microsoft express and sent my self a message which I recieved.
    Any help on why I can't get the database procedure to work would be apprecieated.
    <<<<<<Code Below >>>>
    CREATE OR REPLACE PROCEDURE "CFULLER"."MAIL" ( TOPERSON IN
    VARCHAR2,FROMPERSON IN VARCHAR2,MESSAGE IN VARCHAR2)
    IS
    mailhost VARCHAR2(64) := '[email protected];
    recipient VARCHAR2(64) := TOPERSON;
    sender VARCHAR2(64) := FROMPERSON;
    mail_conn utl_smtp.connection;
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, recipient);
    utl_smtp.open_data(mail_conn);
    utl_smtp.write_data(mail_conn,MESSAGE);
    utl_smtp.write_data(mail_conn,'Mail host'||mailhost);
    utl_smtp.write_data(mail_conn,'get_user: ' || wwctx_api.get_user );
         utl_smtp.write_data(mail_conn,'get_user_id: ' || to_char(wwctx_api.get_user_id));
    utl_smtp.write_data(mail_conn,'get_db_user: ' || wwctx_api.get_db_user);
    utl_smtp.write_data(mail_conn,'get_product_version: ' || wwctx_api.get_product_version );
    utl_smtp.write_data(mail_conn,'get_product_schema: ' || wwctx_api.get_product_schema);
    utl_smtp.write_data(mail_conn,'logged_on: ' || to_char(wwctx_api.logged_on));
    utl_smtp.write_data(mail_conn,'get_sessionid: ' || wwctx_api.get_sessionid);
    utl_smtp.write_data(mail_conn,'get_login_time: ' ||to_char(wwctx_api.get_login_time,'MM/DD/YYYY HH24:MI:SS'));
    utl_smtp.write_data(mail_conn,'get_ip_address: ' || wwctx_api.get_ip_address);
    utl_smtp.write_data(mail_conn,'get_nls_language: ' || wwctx_api.get_nls_language);
    utl_smtp.write_data(mail_conn,'get_public_user: ' || wwctx_api.get_public_user);
    utl_smtp.write_data(mail_conn,'get_sso_schema: ' || wwctx_api.get_sso_schema);
    utl_smtp.write_data(mail_conn,'get_proxy_server: ' || wwctx_api.get_proxy_server);
    utl_smtp.write_data(mail_conn,'get_image_path: ' || wwctx_api.get_image_path);
    utl_smtp.write_data(mail_conn,'get_proc_path: ' || wwctx_api.get_proc_path ( 'home', 'portal30'));
    utl_smtp.write_data(mail_conn,'get_server_protocol: ' || wwctx_api.get_server_protocol );
    utl_smtp.write_data(mail_conn,'get_sso_proc_protocol: ' || wwctx_api.get_sso_proc_path ('home', 'portal30_sso' ));
    utl_smtp.write_data(mail_conn,'get_server_name: ' || wwctx_api.get_server_name );
    utl_smtp.write_data(mail_conn,'get_dad_name: ' || wwctx_api.get_dad_name );
    utl_smtp.close_data(mail_conn);
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN utl_smtp.INVALID_OPERATION then
    DBMS_OUTPUT.PUT_LINE ( 'INVALID_OPERATION : '|| sqlcode ) ;
    WHEN utl_smtp.TRANSIENT_ERROR then
    DBMS_OUTPUT.PUT_LINE ( 'TRANSIENT_ERROR : '|| sqlcode ) ;
    WHEN utl_smtp.PERMANENT_ERROR then
    DBMS_OUTPUT.PUT_LINE ( 'PERMANENT_ERROR : '|| sqlcode ) ;
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE ( 'Others : '|| sqlcode ) ;
    end mail
    ;

    The only thing I am getting for output is a value of 1
    If I comment out the portal api calls in this message it works fine.
    I am going to pass these values in a function call to a variable and concatenate them.
    I wish there was a example of tieing the utl_smpt mail functionality with the portal environment.
    This make life a lot easier to know what the person was doing when they had the problem.
    crf

  • Send mail problem having invalid address with correct addresses

    I used java mail api to send mails. the code is a s below
    javax.mail.Session mailSession=(javax.mail.Session)ctx.lookup("java:/Mail");
    mailSession.setDebug(false);
    javax.mail.Message msg = new javax.mail.internet.MimeMessage(mailSession);
    msg.addRecipients(javax.mail.Message.RecipientType.TO, addressToArr);
    msg.setSubject(mailSubject);
    msg.setContent(mailBody, contentType);
    javax.mail.Transport.send(msg);
    But if there is an invalid address in the recipient address array, the email won't be sent to the correct addresses as well. i just want to know whther it happens any coding issues or our mail server implementation.

    Hi!
    You need to activated properties config mail.smtp.sendpartial to true :
    // Setup partial mail
    props.put("mail.smtp.sendpartial", (new Boolean(partial)).toString());
    if the recipient address array have bad address, it will still be sent to good address...
    or/and check email address before send mail :
    public static boolean isValidEmail(String email)
              if (email == null) return false;
              boolean valid = true;
              try
                   InternetAddress addr = new InternetAddress(email);
                   addr.validate();
              catch (AddressException ex)
                   valid = false;
              return valid;
    }regards,

  • Sending Mail problem - Very Urgent

    I want to send mail through the Java code using struts framework.It works fine olny with the authentication.I want suggestions for sending mails without authentication.

    {color:red}CROSS POSTED{color}
    {color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5245789
    {color}
    Cross posting is rude.
    And as I noted on the other thread, looks like a identity fraud requirement to me.
    db

  • HT201320 Hi , I'm with outlook but I can no longer send mail, problem

    What can I do about not being able to send mail? I'm with outlook

    Hi there stan137,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    -Griff W. 

  • Sending mail problem on iPod Touch

    Suddenly, and I mean suddenly, I cannot send mail from my Touch. It tells me that "sender address is invalid." I checked all my settings and my contact info and all is correct. Anyone have any idea what's going on? I can get mail but can't send without that warning message.

    If you can send mail from your mac, did you try to replace the account settings on your iPod, using this option in the info pane, advanced section? Then try again to send mails.

Maybe you are looking for

  • I can no longer purchase music directly from the Apple TV. I can still buy TV shows and movies but no music.....

    I can no longer purchase music directly from the Apple TV. I can still buy TV shows and movies but no music.....my iTunes match is there.

  • Poor Service the whole nine yards

    On Saturday, March 29, 2014, I purchased a "Deal of the Day," a Samsung Gear Watch and selected a pick up from Best Buy on Monroe Street in Toledo, OH.  I live 28.1 miles from this location, but I happened to be passing it later that day.  I got a co

  • Sender RFC Adapter , Sender File Adapter  - Payload Compression

    Sender RFC Adapter or the Sender File Adapter compress the payload of any spaces in between the tags or remove any spaces at the start and end of the payload. We need to pass the spaces as is in the message payload to the receiving system? Is there a

  • How to install Oracle 11gR2 on Windows 7

    Hi friend; There are many questions about *"how we can make instalaltion on win7"*. Thatswhy i made one video tutorial which is mention *"How to install Oracle 11gR2 on Windows 7* Its avaliable at my blog: *http://heliosguneserol.wordpress.com/* Hope

  • Audio on Question Slide

    Hi, I am building a program where the participant listens to a conversation and then has to answer questions about what he/she heard. I would like to add a button to the question slide called "hear it again" where they would click on it (or rollover)