Sending mail on successful execution of Interface in ODI

HI,
I am using ODI 11g  and I want to send a mail if the interface executed successfully but in the "ODI send mail"  page I am unable to give the values of the parameter.
please help me if I want to send mail to my personal "Gmail" account , what would be the the value for :
mail server: --------?
From: ---------------?
And why they are not asking for the authentication of the "from" mail ID.
I am getting the following error when I am passing the "mail server" =216.58.220.5 (which is the IP of the "Gmail" server which I got by pinging on the website).
ERROR:
Caused By: javax.mail.MessagingException: Could not connect to SMTP host: 216.58.220.5, port: 25;
  nested exception is:
  java.net.ConnectException: Connection timed out
  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
  at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
  at javax.mail.Service.connect(Service.java:275)
  at javax.mail.Service.connect(Service.java:156)
  at javax.mail.Service.connect(Service.java:105)
  at javax.mail.Transport.send0(Transport.java:168)
  at javax.mail.Transport.send(Transport.java:98)
  at com.sunopsis.dwg.tools.SendMail.actionExecute(SendMail.java:172)
  at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)
  at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3437)
  at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(SnpSessTaskSql.java:1509)
  at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:44)
  at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:1)
  at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
  at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
  at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
  at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)
  at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)
  at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)
  at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
  at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
  at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
  at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
  at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
  at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
  at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
  at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection timed out
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
  at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  at java.net.Socket.connect(Socket.java:579)
  at java.net.Socket.connect(Socket.java:528)
  at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
  at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
  ... 26 more

Dear Bhabani,
Thanks for your attention.
When I am trying to implement the first solution,I am unable to get the option by default,even when I am setting up the options manually it is throwing error.
Can you please describe the procedure a little more or it would be great if it is through screen shots.
ERROR:
ODI-1217: Session EMP_RETAILSOLS (85001) fails with return code 7000.
Caused By: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: Error during task interpretation.
Task: 21
java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("The application script threw an exception: com.sunopsis.tools.core.ex . . . '' Token Parsing Error: Lexical error at line 2, column 41.  Encountered: "\\" (92), after : "": <at unknown location>
BSF info: Send_mail at line: 0 column: columnNo
  at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:489)
  at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:737)
  at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:465)
  at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)
  at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
  at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
  at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
  at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
  at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
  at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
  at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
  at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("The application script threw an exception: com.sunopsis.tools.core.ex . . . '' Token Parsing Error: Lexical error at line 2, column 41.  Encountered: "\\" (92), after : "": <at unknown location>
BSF info: Send_mail at line: 0 column: columnNo
  at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:476)
  ... 11 more
Caused by: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``out.print("The application script threw an exception: com.sunopsis.tools.core.ex . . . '' Token Parsing Error: Lexical error at line 2, column 41.  Encountered: "\\" (92), after : "": <at unknown location>
BSF info: Send_mail at line: 0 column: columnNo
  at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
  at bsh.util.BeanShellBSFEngine.exec(Unknown Source)
  at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)
  ... 11 more
Text: The application script threw an exception: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Exception getOption("TEMP_JAVA_DIR") : Exception getOption("TEMP_JAVA_DIR") : Option does not exist ("TEMP_JAVA_DIR") BSF info: Send_mail at line: 0 column: columnNo
out.print("<SunopsisExport><Admin RepositoryVersion=\"04.03.04.02\"/><Object class=\"com.sunopsis.dwg.dbobj.SnpTrt\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"FirstDate\" type=\"java.sql.Timestamp\">2012-12-20 14:28:40.0</Field><Field name=\"FirstUser\" type=\"java.lang.String\">SUPERVISOR</Field><Field name=\"IndChange\" type=\"java.lang.String\">U</Field><Field name=\"IndJrnMethod\" type=\"java.lang.String\">S</Field><Field name=\"IndSuppSetBased\" type=\"java.lang.String\">null</Field><Field name=\"IntVersion\" type=\"com.sunopsis.sql.DbInt\">7</Field><Field name=\"IFolder\" type=\"com.sunopsis.sql.DbInt\">9091</Field><Field name=\"IProject\" type=\"com.sunopsis.sql.DbInt\">7091</Field><Field name=\"IScBaseTrt\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IScOrigTrt\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IScTrt\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IState\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtTrtTxt\" type=\"com.sunopsis.sql.DbInt\">3311091</Field><Field name=\"KimMultiDserver\" type=\"java.lang.String\">0</Field><Field name=\"KmDefault\" type=\"java.lang.String\">0</Field><Field name=\"KmSrcTechno\" type=\"java.lang.String\">null</Field><Field name=\"KmTechno\" type=\"java.lang.String\">null</Field><Field name=\"KmVersion\" type=\"java.lang.String\">null</Field><Field name=\"LastDate\" type=\"java.sql.Timestamp\">2012-12-20 14:40:22.0</Field><Field name=\"LastUser\" type=\"java.lang.String\">SUPERVISOR</Field><Field name=\"LChecksum\" type=\"com.sunopsis.sql.DbInt\">2221</Field><Field name=\"LCode\" type=\"java.lang.String\">null</Field><Field name=\"OrdFolder\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"TrtName\" type=\"java.lang.String\">SendGmailTLS</Field><Field name=\"TrtType\" type=\"java.lang.String\">U</Field><Field name=\"VLastDate\" type=\"java.sql.Timestamp\">null</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpTxtHeader\"><Field name=\"Enc\" type=\"java.lang.String\">null</Field><Field name=\"EncKey\" type=\"java.lang.String\">null</Field><Field name=\"ITxt\" type=\"com.sunopsis.sql.DbInt\">3311091</Field><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">107</Field><Field name=\"SqlIndGrp\" type=\"java.lang.String\">0</Field><Field name=\"Txt\" type=\"java.lang.String\">COMPONENT NAME: SendGmailTLS\n\nAUTHOR: Bhabani Ranjan Mahapatra\nEMAIL    : [email protected]\nBLOG     : http://dwteam.in\n\n\nDESCRIPTION:\nThis procedure is required to send email using gmail credentials.</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpOrigTxt\"><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">107</Field><Field name=\"OrigineName\" type=\"java.lang.String\">Edit Command</Field><Field name=\"SnpsCol\" type=\"java.lang.String\">I_TXT_TRT_TXT</Field><Field name=\"SnpsTable\" type=\"java.lang.String\">SNP_TRT</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpUserExit\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"IndChange\" type=\"java.lang.String\">I</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtUeHelp\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ITxtValue\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">756091</Field><Field name=\"Position\" type=\"com.sunopsis.sql.DbInt\">30</Field><Field name=\"ShortValue\" type=\"java.lang.String\">0</Field><Field name=\"UeName\" type=\"java.lang.String\">DELETE_TEMP_FILES</Field><Field name=\"UeSdesc\" type=\"java.lang.String\">Remove temp files</Field><Field name=\"UeType\" type=\"java.lang.String\">C</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpUserExit\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"IndChange\" type=\"java.lang.String\">I</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtUeHelp\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ITxtValue\" type=\"com.sunopsis.sql.DbInt\">3312091</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">758091</Field><Field name=\"Position\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ShortValue\" type=\"java.lang.String\">null</Field><Field name=\"UeName\" type=\"java.lang.String\">BODY</Field><Field name=\"UeSdesc\" type=\"java.lang.String\">null</Field><Field name=\"UeType\" type=\"java.lang.String\">T</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpTxtHeader\"><Field name=\"Enc\" type=\"java.lang.String\">null</Field><Field name=\"EncKey\" type=\"java.lang.String\">null</Field><Field name=\"ITxt\" type=\"com.sunopsis.sql.DbInt\">3312091</Field><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">110</Field><Field name=\"SqlIndGrp\" type=\"java.lang.String\">0</Field><Field name=\"Txt\" type=\"java.lang.String\">Its a Mail from ODI Studio.\\nThank You</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpOrigTxt\"><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">110</Field><Field name=\"OrigineName\" type=\"java.lang.String\">Text value</Field><Field name=\"SnpsCol\" type=\"java.lang.String\">I_TXT_VALUE</Field><Field name=\"SnpsTable\" type=\"java.lang.String\">SNP_USER_EXIT</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpUserExit\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"IndChange\" type=\"java.lang.String\">I</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtUeHelp\" type=\"com.sunopsis.sql.DbInt\">3313091</Field><Field name=\"ITxtValue\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">759091</Field><Field name=\"Position\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ShortValue\" type=\"java.lang.String\"><?= java.lang.System.getProperty(\"java.home\").matches(\".*jre\")?java.lang.System.getProperty(\"java.home\")+\"/..\":java.lang.System.getProperty(\"java.home\") ?></Field><Field name=\"UeName\" type=\"java.lang.String\">JAVA_HOME</Field><Field name=\"UeSdesc\" type=\"java.lang.String\">Location of the JDK</Field><Field name=\"UeType\" type=\"java.lang.String\">V</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpTxtHeader\"><Field name=\"Enc\" type=\"java.lang.String\">null</Field><Field name=\"EncKey\" type=\"java.lang.String\">null</Field><Field name=\"ITxt\" type=\"com.sunopsis.sql.DbInt\">3313091</Field><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">111</Field><Field name=\"SqlIndGrp\" type=\"java.lang.String\">0</Field><Field name=\"Txt\" type=\"java.lang.String\">\nExamples:\n\t$ODI_JAVA_HOME on Unix \n\t%ODI_JAVA_HOME% on Windows\n\t/usr/lib/jvm/java-7-openjdk-amd64</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpOrigTxt\"><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">111</Field><Field name=\"OrigineName\" type=\"java.lang.String\">User Exit help</Field><Field name=\"SnpsCol\" type=\"java.lang.String\">I_TXT_UE_HELP</Field><Field name=\"SnpsTable\" type=\"java.lang.String\">SNP_USER_EXIT</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpUserExit\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"IndChange\" type=\"java.lang.String\">I</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtUeHelp\" type=\"com.sunopsis.sql.DbInt\">3314091</Field><Field name=\"ITxtValue\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">765091</Field><Field name=\"Position\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ShortValue\" type=\"java.lang.String\">C:/oracle/product/11.1.1/Oracle_ODI_1/oracledi.sdk/lib/mail.jar</Field><Field name=\"UeName\" type=\"java.lang.String\">JAVA_CP_JAR</Field><Field name=\"UeSdesc\" type=\"java.lang.String\">Provide the jar name with location</Field><Field name=\"UeType\" type=\"java.lang.String\">V</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpTxtHeader\"><Field name=\"Enc\" type=\"java.lang.String\">null</Field><Field name=\"EncKey\" type=\"java.lang.String\">null</Field><Field name=\"ITxt\" type=\"com.sunopsis.sql.DbInt\">3314091</Field><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">111</Field><Field name=\"SqlIndGrp\" type=\"java.lang.String\">0</Field><Field name=\"Txt\" type=\"java.lang.String\">mail.jar is required for this java file.</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpUserExit\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"IndChange\" type=\"java.lang.String\">I</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtUeHelp\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ITxtValue\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">761091</Field><Field name=\"Position\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ShortValue\" type=\"java.lang.String\">[email protected]</Field><Field name=\"UeName\" type=\"java.lang.String\">FROM</Field><Field name=\"UeSdesc\" type=\"java.lang.String\">FROM</Field><Field name=\"UeType\" type=\"java.lang.String\">V</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpUserExit\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"IndChange\" type=\"java.lang.String\">I</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtUeHelp\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ITxtValue\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">762091</Field><Field name=\"Position\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ShortValue\" type=\"java.lang.String\">Mail From ODI</Field><Field name=\"UeName\" type=\"java.lang.String\">SUBJECT</Field><Field name=\"UeSdesc\" type=\"java.lang.String\">Subject</Field><Field name=\"UeType\" type=\"java.lang.String\">V</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpUserExit\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"IndChange\" type=\"java.lang.String\">I</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtUeHelp\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ITxtValue\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">763091</Field><Field name=\"Position\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ShortValue\" type=\"java.lang.String\">C:/Users/Public</Field><Field name=\"UeName\" type=\"java.lang.String\">TEMP_JAVA_DIR</Field><Field name=\"UeSdesc\" type=\"java.lang.String\">Temp Java File Location</Field><Field name=\"UeType\" type=\"java.lang.String\">V</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpUserExit\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"IndChange\" type=\"java.lang.String\">U</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtUeHelp\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ITxtValue\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">764091</Field><Field name=\"Position\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ShortValue\" type=\"java.lang.String\">null</Field><Field name=\"UeName\" type=\"java.lang.String\">USERNAME</Field><Field name=\"UeSdesc\" type=\"java.lang.String\">null</Field><Field name=\"UeType\" type=\"java.lang.String\">T</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpUserExit\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"IndChange\" type=\"java.lang.String\">U</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtUeHelp\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ITxtValue\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">757091</Field><Field name=\"Position\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ShortValue\" type=\"java.lang.String\">null</Field><Field name=\"UeName\" type=\"java.lang.String\">PASSWORD</Field><Field name=\"UeSdesc\" type=\"java.lang.String\">null</Field><Field name=\"UeType\" type=\"java.lang.String\">T</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpUserExit\"><Field name=\"ExtVersion\" type=\"java.lang.String\">null</Field><Field name=\"IndChange\" type=\"java.lang.String\">I</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"ITxtUeHelp\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ITxtValue\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">760091</Field><Field name=\"Position\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ShortValue\" type=\"java.lang.String\">[email protected]</Field><Field name=\"UeName\" type=\"java.lang.String\">TO</Field><Field name=\"UeSdesc\" type=\"java.lang.String\">Target User ID</Field><Field name=\"UeType\" type=\"java.lang.String\">V</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpLineTrt\"><Field name=\"AlwaysExe\" type=\"java.lang.String\">0</Field><Field name=\"ColConnectId\" type=\"java.lang.String\">null</Field><Field name=\"ColContextCode\" type=\"java.lang.String\">null</Field><Field name=\"ColIndCommit\" type=\"java.lang.String\">null</Field><Field name=\"ColIsolLevel\" type=\"java.lang.String\">null</Field><Field name=\"ColITxt\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ColLschemaName\" type=\"java.lang.String\">null</Field><Field name=\"ColPlanComp\" type=\"java.lang.String\">null</Field><Field name=\"ColTechno\" type=\"java.lang.String\">null</Field><Field name=\"DefConnectId\" type=\"java.lang.String\">null</Field><Field name=\"DefContextCode\" type=\"java.lang.String\">null</Field><Field name=\"DefIndCommit\" type=\"java.lang.String\">null</Field><Field name=\"DefIsolLevel\" type=\"java.lang.String\">null</Field><Field name=\"DefITxt\" type=\"com.sunopsis.sql.DbInt\">3315091</Field><Field name=\"DefLschemaName\" type=\"java.lang.String\">null</Field><Field name=\"DefPlanComp\" type=\"java.lang.String\">null</Field><Field name=\"DefTechno\" type=\"java.lang.String\">SUNOPSIS_API</Field><Field name=\"FirstDate\" type=\"java.sql.Timestamp\">2012-12-20 14:28:40.0</Field><Field name=\"FirstUser\" type=\"java.lang.String\">SUPERVISOR</Field><Field name=\"IndErr\" type=\"java.lang.String\">0</Field><Field name=\"IndLogFinalCmd\" type=\"java.lang.String\">0</Field><Field name=\"IndLogMethod\" type=\"java.lang.String\">null</Field><Field name=\"IndLogNb\" type=\"java.lang.String\">null</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"KcmAk\" type=\"java.lang.String\">0</Field><Field name=\"KcmCond\" type=\"java.lang.String\">0</Field><Field name=\"KcmErrDel\" type=\"java.lang.String\">0</Field><Field name=\"KcmJoin\" type=\"java.lang.String\">0</Field><Field name=\"KcmNull\" type=\"java.lang.String\">0</Field><Field name=\"KcmPk\" type=\"java.lang.String\">0</Field><Field name=\"KimDrvdSel\" type=\"java.lang.String\">0</Field><Field name=\"KimIdx\" type=\"java.lang.String\">0</Field><Field name=\"KimJrn\" type=\"java.lang.String\">0</Field><Field name=\"KimJrnPop\" type=\"java.lang.String\">0</Field><Field name=\"KjmCreate\" type=\"java.lang.String\">0</Field><Field name=\"KjmDrop\" type=\"java.lang.String\">0</Field><Field name=\"KjmExtend\" type=\"java.lang.String\">0</Field><Field name=\"KjmLock\" type=\"java.lang.String\">0</Field><Field name=\"KjmPurge\" type=\"java.lang.String\">0</Field><Field name=\"KjmSetInstall\" type=\"java.lang.String\">0</Field><Field name=\"KjmSetUninstall\" type=\"java.lang.String\">0</Field><Field name=\"KjmSubscribe\" type=\"java.lang.String\">0</Field><Field name=\"KjmTableOrder\" type=\"java.lang.String\">0</Field><Field name=\"KjmUnlock\" type=\"java.lang.String\">0</Field><Field name=\"KjmUnsubscribe\" type=\"java.lang.String\">0</Field><Field name=\"KlmAfterInt\" type=\"java.lang.String\">0</Field><Field name=\"KlmIdx\" type=\"java.lang.String\">0</Field><Field name=\"KlmJrn\" type=\"java.lang.String\">0</Field><Field name=\"KxmUsed\" type=\"java.lang.String\">null</Field><Field name=\"LastDate\" type=\"java.sql.Timestamp\">2012-12-20 14:38:47.0</Field><Field name=\"LastUser\" type=\"java.lang.String\">SUPERVISOR</Field><Field name=\"LogLevDet\" type=\"java.lang.String\">3</Field><Field name=\"OrdTrt\" type=\"com.sunopsis.sql.DbInt\">30</Field><Field name=\"SqlName\" type=\"java.lang.String\">Delete temporary files</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpTxtHeader\"><Field name=\"Enc\" type=\"java.lang.String\">null</Field><Field name=\"EncKey\" type=\"java.lang.String\">null</Field><Field name=\"ITxt\" type=\"com.sunopsis.sql.DbInt\">3315091</Field><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">102</Field><Field name=\"SqlIndGrp\" type=\"java.lang.String\">0</Field><Field name=\"Txt\" type=\"java.lang.String\">OdiFileDelete \"-FILE=") ;
out.print(odiRef.getOption("TEMP_JAVA_DIR")) ;
out.print("/SendMailTLS*\"</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpOrigTxt\"><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">102</Field><Field name=\"OrigineName\" type=\"java.lang.String\">Target Technology</Field><Field name=\"SnpsCol\" type=\"java.lang.String\">DEF_I_TXT</Field><Field name=\"SnpsTable\" type=\"java.lang.String\">SNP_LINE_TRT</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpLineTrt\"><Field name=\"AlwaysExe\" type=\"java.lang.String\">1</Field><Field name=\"ColConnectId\" type=\"java.lang.String\">null</Field><Field name=\"ColContextCode\" type=\"java.lang.String\">null</Field><Field name=\"ColIndCommit\" type=\"java.lang.String\">null</Field><Field name=\"ColIsolLevel\" type=\"java.lang.String\">null</Field><Field name=\"ColITxt\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ColLschemaName\" type=\"java.lang.String\">null</Field><Field name=\"ColPlanComp\" type=\"java.lang.String\">null</Field><Field name=\"ColTechno\" type=\"java.lang.String\">null</Field><Field name=\"DefConnectId\" type=\"java.lang.String\">null</Field><Field name=\"DefContextCode\" type=\"java.lang.String\">null</Field><Field name=\"DefIndCommit\" type=\"java.lang.String\">null</Field><Field name=\"DefIsolLevel\" type=\"java.lang.String\">null</Field><Field name=\"DefITxt\" type=\"com.sunopsis.sql.DbInt\">3316091</Field><Field name=\"DefLschemaName\" type=\"java.lang.String\">null</Field><Field name=\"DefPlanComp\" type=\"java.lang.String\">null</Field><Field name=\"DefTechno\" type=\"java.lang.String\">SUNOPSIS_API</Field><Field name=\"FirstDate\" type=\"java.sql.Timestamp\">2012-12-20 14:28:40.0</Field><Field name=\"FirstUser\" type=\"java.lang.String\">SUPERVISOR</Field><Field name=\"IndErr\" type=\"java.lang.String\">0</Field><Field name=\"IndLogFinalCmd\" type=\"java.lang.String\">0</Field><Field name=\"IndLogMethod\" type=\"java.lang.String\">null</Field><Field name=\"IndLogNb\" type=\"java.lang.String\">null</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"KcmAk\" type=\"java.lang.String\">0</Field><Field name=\"KcmCond\" type=\"java.lang.String\">0</Field><Field name=\"KcmErrDel\" type=\"java.lang.String\">0</Field><Field name=\"KcmJoin\" type=\"java.lang.String\">0</Field><Field name=\"KcmNull\" type=\"java.lang.String\">0</Field><Field name=\"KcmPk\" type=\"java.lang.String\">0</Field><Field name=\"KimDrvdSel\" type=\"java.lang.String\">0</Field><Field name=\"KimIdx\" type=\"java.lang.String\">0</Field><Field name=\"KimJrn\" type=\"java.lang.String\">0</Field><Field name=\"KimJrnPop\" type=\"java.lang.String\">0</Field><Field name=\"KjmCreate\" type=\"java.lang.String\">0</Field><Field name=\"KjmDrop\" type=\"java.lang.String\">0</Field><Field name=\"KjmExtend\" type=\"java.lang.String\">0</Field><Field name=\"KjmLock\" type=\"java.lang.String\">0</Field><Field name=\"KjmPurge\" type=\"java.lang.String\">0</Field><Field name=\"KjmSetInstall\" type=\"java.lang.String\">0</Field><Field name=\"KjmSetUninstall\" type=\"java.lang.String\">0</Field><Field name=\"KjmSubscribe\" type=\"java.lang.String\">0</Field><Field name=\"KjmTableOrder\" type=\"java.lang.String\">0</Field><Field name=\"KjmUnlock\" type=\"java.lang.String\">0</Field><Field name=\"KjmUnsubscribe\" type=\"java.lang.String\">0</Field><Field name=\"KlmAfterInt\" type=\"java.lang.String\">0</Field><Field name=\"KlmIdx\" type=\"java.lang.String\">0</Field><Field name=\"KlmJrn\" type=\"java.lang.String\">0</Field><Field name=\"KxmUsed\" type=\"java.lang.String\">null</Field><Field name=\"LastDate\" type=\"java.sql.Timestamp\">2012-12-20 14:38:47.0</Field><Field name=\"LastUser\" type=\"java.lang.String\">SUPERVISOR</Field><Field name=\"LogLevDet\" type=\"java.lang.String\">3</Field><Field name=\"OrdTrt\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"SqlName\" type=\"java.lang.String\">Create Java File</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpTxtHeader\"><Field name=\"Enc\" type=\"java.lang.String\">null</Field><Field name=\"EncKey\" type=\"java.lang.String\">null</Field><Field name=\"ITxt\" type=\"com.sunopsis.sql.DbInt\">3316091</Field><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">102</Field><Field name=\"SqlIndGrp\" type=\"java.lang.String\">2</Field><Field name=\"Txt\" type=\"java.lang.String\">OdiOutFile \"-FILE=") ;
out.print(odiRef.getOption("TEMP_JAVA_DIR")) ;
out.print("/SendMailTLS.java\"\nimport java.util.Properties;\nimport javax.mail.Message;\nimport javax.mail.MessagingException;\nimport javax.mail.PasswordAuthentication;\nimport javax.mail.Session;\nimport javax.mail.Transport;\nimport javax.mail.internet.InternetAddress;\nimport javax.mail.internet.MimeMessage;\n \npublic class SendMailTLS {\n\tpublic static void main(String[] args) {\n\t\tfinal String username = \"") ;
out.print(odiRef.getOption("USERNAME")) ;
out.print("\";\n\t\tfinal String password = \"") ;
out.print(odiRef.getOption("PASSWORD")) ;
out.print("\";\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\nprops.put(\u201cmail.smtp.socketFactory.port\u201d, \u201c587\u2033);\nprops.put(\u201cmail.smtp.socketFactory.class\u201d,\u201djavax.net.tls.TLSSocketFactory\u201d);\n\n \n\t\tSession session = Session.getInstance(props,\n\t\t  new javax.mail.Authenticator() {\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t}\n\t\t  });\n \n\t\ttry {\n \n\t\t\tMessage message = new MimeMessage(session);\n\t\t\tmessage.setFrom(new InternetAddress(\"") ;
out.print(odiRef.getOption("FROM")) ;
out.print("\"));\n\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\tInternetAddress.parse(\"") ;
out.print(odiRef.getOption("TO")) ;
out.print("\"));\n\t\t\tmessage.setSubject(\"") ;
out.print(odiRef.getOption("SUBJECT")) ;
out.print("\");\n\t\t\tmessage.setText(\"") ;
out.print(odiRef.getOption("BODY")) ;
out.print("\");\n \n\t\t\tTransport.send(message);\n \n\t\t\tSystem.out.println(\"Done\");\n \n\t\t} catch (MessagingException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}\n}</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpLineTrt\"><Field name=\"AlwaysExe\" type=\"java.lang.String\">1</Field><Field name=\"ColConnectId\" type=\"java.lang.String\">null</Field><Field name=\"ColContextCode\" type=\"java.lang.String\">null</Field><Field name=\"ColIndCommit\" type=\"java.lang.String\">null</Field><Field name=\"ColIsolLevel\" type=\"java.lang.String\">null</Field><Field name=\"ColITxt\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ColLschemaName\" type=\"java.lang.String\">null</Field><Field name=\"ColPlanComp\" type=\"java.lang.String\">null</Field><Field name=\"ColTechno\" type=\"java.lang.String\">FILE</Field><Field name=\"DefConnectId\" type=\"java.lang.String\">null</Field><Field name=\"DefContextCode\" type=\"java.lang.String\">null</Field><Field name=\"DefIndCommit\" type=\"java.lang.String\">null</Field><Field name=\"DefIsolLevel\" type=\"java.lang.String\">null</Field><Field name=\"DefITxt\" type=\"com.sunopsis.sql.DbInt\">3317091</Field><Field name=\"DefLschemaName\" type=\"java.lang.String\">null</Field><Field name=\"DefPlanComp\" type=\"java.lang.String\">null</Field><Field name=\"DefTechno\" type=\"java.lang.String\">SUNOPSIS_API</Field><Field name=\"FirstDate\" type=\"java.sql.Timestamp\">2012-12-20 14:28:40.0</Field><Field name=\"FirstUser\" type=\"java.lang.String\">SUPERVISOR</Field><Field name=\"IndErr\" type=\"java.lang.String\">0</Field><Field name=\"IndLogFinalCmd\" type=\"java.lang.String\">0</Field><Field name=\"IndLogMethod\" type=\"java.lang.String\">null</Field><Field name=\"IndLogNb\" type=\"java.lang.String\">null</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"KcmAk\" type=\"java.lang.String\">0</Field><Field name=\"KcmCond\" type=\"java.lang.String\">0</Field><Field name=\"KcmErrDel\" type=\"java.lang.String\">0</Field><Field name=\"KcmJoin\" type=\"java.lang.String\">0</Field><Field name=\"KcmNull\" type=\"java.lang.String\">0</Field><Field name=\"KcmPk\" type=\"java.lang.String\">0</Field><Field name=\"KimDrvdSel\" type=\"java.lang.String\">0</Field><Field name=\"KimIdx\" type=\"java.lang.String\">0</Field><Field name=\"KimJrn\" type=\"java.lang.String\">0</Field><Field name=\"KimJrnPop\" type=\"java.lang.String\">0</Field><Field name=\"KjmCreate\" type=\"java.lang.String\">0</Field><Field name=\"KjmDrop\" type=\"java.lang.String\">0</Field><Field name=\"KjmExtend\" type=\"java.lang.String\">0</Field><Field name=\"KjmLock\" type=\"java.lang.String\">0</Field><Field name=\"KjmPurge\" type=\"java.lang.String\">0</Field><Field name=\"KjmSetInstall\" type=\"java.lang.String\">0</Field><Field name=\"KjmSetUninstall\" type=\"java.lang.String\">0</Field><Field name=\"KjmSubscribe\" type=\"java.lang.String\">0</Field><Field name=\"KjmTableOrder\" type=\"java.lang.String\">0</Field><Field name=\"KjmUnlock\" type=\"java.lang.String\">0</Field><Field name=\"KjmUnsubscribe\" type=\"java.lang.String\">0</Field><Field name=\"KlmAfterInt\" type=\"java.lang.String\">0</Field><Field name=\"KlmIdx\" type=\"java.lang.String\">0</Field><Field name=\"KlmJrn\" type=\"java.lang.String\">0</Field><Field name=\"KxmUsed\" type=\"java.lang.String\">null</Field><Field name=\"LastDate\" type=\"java.sql.Timestamp\">2012-12-20 14:38:47.0</Field><Field name=\"LastUser\" type=\"java.lang.String\">SUPERVISOR</Field><Field name=\"LogLevDet\" type=\"java.lang.String\">3</Field><Field name=\"OrdTrt\" type=\"com.sunopsis.sql.DbInt\">10</Field><Field name=\"SqlName\" type=\"java.lang.String\">Complie The java file</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpTxtHeader\"><Field name=\"Enc\" type=\"java.lang.String\">null</Field><Field name=\"EncKey\" type=\"java.lang.String\">null</Field><Field name=\"ITxt\" type=\"com.sunopsis.sql.DbInt\">3317091</Field><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">102</Field><Field name=\"SqlIndGrp\" type=\"java.lang.String\">0</Field><Field name=\"Txt\" type=\"java.lang.String\">OdiOSCommand \"-COMMAND=") ;
out.print( odiRef.getOption("JAVA_HOME") ) ;
out.print("/bin/javac -cp ") ;
out.print(odiRef.getOption("JAVA_CP_JAR")) ;
out.print("  ") ;
out.print(odiRef.getOption("TEMP_JAVA_DIR")) ;
out.print("/SendMailTLS.java\" \"-ERR_FILE=") ;
out.print(odiRef.getOption("TEMP_JAVA_DIR")) ;
out.print("/SendMailTLS_err.txt\" \"-OUT_FILE=") ;
out.print(odiRef.getOption("TEMP_JAVA_DIR")) ;
out.print("/SendMailTLS_out.txt\"</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpLineTrt\"><Field name=\"AlwaysExe\" type=\"java.lang.String\">1</Field><Field name=\"ColConnectId\" type=\"java.lang.String\">null</Field><Field name=\"ColContextCode\" type=\"java.lang.String\">null</Field><Field name=\"ColIndCommit\" type=\"java.lang.String\">null</Field><Field name=\"ColIsolLevel\" type=\"java.lang.String\">null</Field><Field name=\"ColITxt\" type=\"com.sunopsis.sql.DbInt\">null</Field><Field name=\"ColLschemaName\" type=\"java.lang.String\">null</Field><Field name=\"ColPlanComp\" type=\"java.lang.String\">null</Field><Field name=\"ColTechno\" type=\"java.lang.String\">FILE</Field><Field name=\"DefConnectId\" type=\"java.lang.String\">null</Field><Field name=\"DefContextCode\" type=\"java.lang.String\">null</Field><Field name=\"DefIndCommit\" type=\"java.lang.String\">null</Field><Field name=\"DefIsolLevel\" type=\"java.lang.String\">null</Field><Field name=\"DefITxt\" type=\"com.sunopsis.sql.DbInt\">3318091</Field><Field name=\"DefLschemaName\" type=\"java.lang.String\">null</Field><Field name=\"DefPlanComp\" type=\"java.lang.String\">null</Field><Field name=\"DefTechno\" type=\"java.lang.String\">SUNOPSIS_API</Field><Field name=\"FirstDate\" type=\"java.sql.Timestamp\">2012-12-20 14:28:40.0</Field><Field name=\"FirstUser\" type=\"java.lang.String\">SUPERVISOR</Field><Field name=\"IndErr\" type=\"java.lang.String\">0</Field><Field name=\"IndLogFinalCmd\" type=\"java.lang.String\">0</Field><Field name=\"IndLogMethod\" type=\"java.lang.String\">null</Field><Field name=\"IndLogNb\" type=\"java.lang.String\">null</Field><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"KcmAk\" type=\"java.lang.String\">0</Field><Field name=\"KcmCond\" type=\"java.lang.String\">0</Field><Field name=\"KcmErrDel\" type=\"java.lang.String\">0</Field><Field name=\"KcmJoin\" type=\"java.lang.String\">0</Field><Field name=\"KcmNull\" type=\"java.lang.String\">0</Field><Field name=\"KcmPk\" type=\"java.lang.String\">0</Field><Field name=\"KimDrvdSel\" type=\"java.lang.String\">0</Field><Field name=\"KimIdx\" type=\"java.lang.String\">0</Field><Field name=\"KimJrn\" type=\"java.lang.String\">0</Field><Field name=\"KimJrnPop\" type=\"java.lang.String\">0</Field><Field name=\"KjmCreate\" type=\"java.lang.String\">0</Field><Field name=\"KjmDrop\" type=\"java.lang.String\">0</Field><Field name=\"KjmExtend\" type=\"java.lang.String\">0</Field><Field name=\"KjmLock\" type=\"java.lang.String\">0</Field><Field name=\"KjmPurge\" type=\"java.lang.String\">0</Field><Field name=\"KjmSetInstall\" type=\"java.lang.String\">0</Field><Field name=\"KjmSetUninstall\" type=\"java.lang.String\">0</Field><Field name=\"KjmSubscribe\" type=\"java.lang.String\">0</Field><Field name=\"KjmTableOrder\" type=\"java.lang.String\">0</Field><Field name=\"KjmUnlock\" type=\"java.lang.String\">0</Field><Field name=\"KjmUnsubscribe\" type=\"java.lang.String\">0</Field><Field name=\"KlmAfterInt\" type=\"java.lang.String\">0</Field><Field name=\"KlmIdx\" type=\"java.lang.String\">0</Field><Field name=\"KlmJrn\" type=\"java.lang.String\">0</Field><Field name=\"KxmUsed\" type=\"java.lang.String\">null</Field><Field name=\"LastDate\" type=\"java.sql.Timestamp\">2012-12-20 14:38:47.0</Field><Field name=\"LastUser\" type=\"java.lang.String\">SUPERVISOR</Field><Field name=\"LogLevDet\" type=\"java.lang.String\">3</Field><Field name=\"OrdTrt\" type=\"com.sunopsis.sql.DbInt\">20</Field><Field name=\"SqlName\" type=\"java.lang.String\">Run the java file</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpTxtHeader\"><Field name=\"Enc\" type=\"java.lang.String\">null</Field><Field name=\"EncKey\" type=\"java.lang.String\">null</Field><Field name=\"ITxt\" type=\"com.sunopsis.sql.DbInt\">3318091</Field><Field name=\"ITxtOrig\" type=\"com.sunopsis.sql.DbInt\">102</Field><Field name=\"SqlIndGrp\" type=\"java.lang.String\">0</Field><Field name=\"Txt\" type=\"java.lang.String\">OdiOSCommand \"-COMMAND=") ;
out.print( odiRef.getOption("JAVA_HOME") ) ;
out.print("/bin/java -cp ") ;
out.print(odiRef.getOption("JAVA_CP_JAR")) ;
out.print(";") ;
out.print(odiRef.getOption("TEMP_JAVA_DIR")) ;
out.print(" SendMailTLS\" \"-ERR_FILE=") ;
out.print(odiRef.getOption("TEMP_JAVA_DIR")) ;
out.print("/SendMailTLS_err.txt\" \"-OUT_FILE=") ;
out.print(odiRef.getOption("TEMP_JAVA_DIR")) ;
out.print("/SendMailTLS_out.txt\"</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpLineTrtUe\"><Field name=\"ITrt\" type=\"com.sunopsis.sql.DbInt\">123091</Field><Field name=\"IUserExit\" type=\"com.sunopsis.sql.DbInt\">756091</Field><Field name=\"OrdTrt\" type=\"com.sunopsis.sql.DbInt\">30</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpImportRep\"><Field name=\"RepShortId\" type=\"com.sunopsis.sql.DbInt\">91</Field><Field name=\"RepTimestamp\" type=\"java.lang.String\">1334831213366</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpImportRep\"><Field name=\"RepShortId\" type=\"com.sunopsis.sql.DbInt\">92</Field><Field name=\"RepTimestamp\" type=\"java.lang.String\">1343117459745</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpImportRep\"><Field name=\"RepShortId\" type=\"com.sunopsis.sql.DbInt\">81</Field><Field name=\"RepTimestamp\" type=\"java.lang.String\">1334307846215</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpImportRep\"><Field name=\"RepShortId\" type=\"com.sunopsis.sql.DbInt\">3</Field><Field name=\"RepTimestamp\" type=\"java.lang.String\">1321309358956</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpImportRep\"><Field name=\"RepShortId\" type=\"com.sunopsis.sql.DbInt\">2</Field><Field name=\"RepTimestamp\" type=\"java.lang.String\">1277905827008</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpImportRep\"><Field name=\"RepShortId\" type=\"com.sunopsis.sql.DbInt\">11</Field><Field name=\"RepTimestamp\" type=\"java.lang.String\">1322240471835</Field></Object><Object class=\"com.sunopsis.dwg.dbobj.SnpImportRep\"><Field name=\"RepShortId\" type=\"com.sunopsis.sql.DbInt\">12</Field><Field name=\"RepTimestamp\" type=\"java.lang.String\">1330677667361</Field></Object><Object class=\"com.sunopsis.dwg.DwgExportSummary\"><Field name=\"ExpTxtNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"InstObjNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"JoinColNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"JoinNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"KeyColNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"KeyNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"LinkDiagNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"MorigTxtNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"MtxtNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"OrigTxtNb\" type=\"com.sunopsis.sql.DbInt\">4</Field><Field name=\"OtherObjectsNb\" type=\"com.sunopsis.sql.DbInt\">16</Field><Field name=\"PlanAgentNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"StepNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"TxtNb\" type=\"com.sunopsis.sql.DbInt\">8</Field><Field name=\"UeOrigNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"UeUsedNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"VarPlanAgentNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"ScenTxtNb\" type=\"com.sunopsis.sql.DbInt\">0</Field><Field name=\"OdiVersion\" type=\"java.lang.String\">11.1.1.6.0 - 19/12/2011</Field><Field name=\"OriginRepositoryID\" type=\"com.sunopsis.sql.DbInt\">91</Field><Field name=\"RepositoryVersion\" type=\"java.lang.String\">04.03.04.02</Field></Object></SunopsisExport>") ;
****** ORIGINAL TEXT ******
<SunopsisExport><Admin RepositoryVersion="04.03.04.02"/><Object class="com.sunopsis.dwg.dbobj.SnpTrt"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="FirstDate" type="java.sql.Timestamp">2012-12-20 14:28:40.0</Field><Field name="FirstUser" type="java.lang.String">SUPERVISOR</Field><Field name="IndChange" type="java.lang.String">U</Field><Field name="IndJrnMethod" type="java.lang.String">S</Field><Field name="IndSuppSetBased" type="java.lang.String">null</Field><Field name="IntVersion" type="com.sunopsis.sql.DbInt">7</Field><Field name="IFolder" type="com.sunopsis.sql.DbInt">9091</Field><Field name="IProject" type="com.sunopsis.sql.DbInt">7091</Field><Field name="IScBaseTrt" type="com.sunopsis.sql.DbInt">null</Field><Field name="IScOrigTrt" type="com.sunopsis.sql.DbInt">null</Field><Field name="IScTrt" type="com.sunopsis.sql.DbInt">null</Field><Field name="IState" type="com.sunopsis.sql.DbInt">null</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtTrtTxt" type="com.sunopsis.sql.DbInt">3311091</Field><Field name="KimMultiDserver" type="java.lang.String">0</Field><Field name="KmDefault" type="java.lang.String">0</Field><Field name="KmSrcTechno" type="java.lang.String">null</Field><Field name="KmTechno" type="java.lang.String">null</Field><Field name="KmVersion" type="java.lang.String">null</Field><Field name="LastDate" type="java.sql.Timestamp">2012-12-20 14:40:22.0</Field><Field name="LastUser" type="java.lang.String">SUPERVISOR</Field><Field name="LChecksum" type="com.sunopsis.sql.DbInt">2221</Field><Field name="LCode" type="java.lang.String">null</Field><Field name="OrdFolder" type="com.sunopsis.sql.DbInt">null</Field><Field name="TrtName" type="java.lang.String">SendGmailTLS</Field><Field name="TrtType" type="java.lang.String">U</Field><Field name="VLastDate" type="java.sql.Timestamp">null</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpTxtHeader"><Field name="Enc" type="java.lang.String">null</Field><Field name="EncKey" type="java.lang.String">null</Field><Field name="ITxt" type="com.sunopsis.sql.DbInt">3311091</Field><Field name="ITxtOrig" type="com.sunopsis.sql.DbInt">107</Field><Field name="SqlIndGrp" type="java.lang.String">0</Field><Field name="Txt" type="java.lang.String">COMPONENT NAME: SendGmailTLS
AUTHOR: Bhabani Ranjan Mahapatra
EMAIL    : [email protected]
BLOG     : http://dwteam.in
DESCRIPTION:
This procedure is required to send email using gmail credentials.</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpOrigTxt"><Field name="ITxtOrig" type="com.sunopsis.sql.DbInt">107</Field><Field name="OrigineName" type="java.lang.String">Edit Command</Field><Field name="SnpsCol" type="java.lang.String">I_TXT_TRT_TXT</Field><Field name="SnpsTable" type="java.lang.String">SNP_TRT</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpUserExit"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="IndChange" type="java.lang.String">I</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt">null</Field><Field name="ITxtValue" type="com.sunopsis.sql.DbInt">null</Field><Field name="IUserExit" type="com.sunopsis.sql.DbInt">756091</Field><Field name="Position" type="com.sunopsis.sql.DbInt">30</Field><Field name="ShortValue" type="java.lang.String">0</Field><Field name="UeName" type="java.lang.String">DELETE_TEMP_FILES</Field><Field name="UeSdesc" type="java.lang.String">Remove temp files</Field><Field name="UeType" type="java.lang.String">C</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpUserExit"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="IndChange" type="java.lang.String">I</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt">null</Field><Field name="ITxtValue" type="com.sunopsis.sql.DbInt">3312091</Field><Field name="IUserExit" type="com.sunopsis.sql.DbInt">758091</Field><Field name="Position" type="com.sunopsis.sql.DbInt">null</Field><Field name="ShortValue" type="java.lang.String">null</Field><Field name="UeName" type="java.lang.String">BODY</Field><Field name="UeSdesc" type="java.lang.String">null</Field><Field name="UeType" type="java.lang.String">T</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpTxtHeader"><Field name="Enc" type="java.lang.String">null</Field><Field name="EncKey" type="java.lang.String">null</Field><Field name="ITxt" type="com.sunopsis.sql.DbInt">3312091</Field><Field name="ITxtOrig" type="com.sunopsis.sql.DbInt">110</Field><Field name="SqlIndGrp" type="java.lang.String">0</Field><Field name="Txt" type="java.lang.String">Its a Mail from ODI Studio.\nThank You</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpOrigTxt"><Field name="ITxtOrig" type="com.sunopsis.sql.DbInt">110</Field><Field name="OrigineName" type="java.lang.String">Text value</Field><Field name="SnpsCol" type="java.lang.String">I_TXT_VALUE</Field><Field name="SnpsTable" type="java.lang.String">SNP_USER_EXIT</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpUserExit"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="IndChange" type="java.lang.String">I</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt">3313091</Field><Field name="ITxtValue" type="com.sunopsis.sql.DbInt">null</Field><Field name="IUserExit" type="com.sunopsis.sql.DbInt">759091</Field><Field name="Position" type="com.sunopsis.sql.DbInt">null</Field><Field name="ShortValue" type="java.lang.String"><?= java.lang.System.getProperty("java.home").matches(".*jre")?java.lang.System.getProperty("java.home")+"/..":java.lang.System.getProperty("java.home") ?></Field><Field name="UeName" type="java.lang.String">JAVA_HOME</Field><Field name="UeSdesc" type="java.lang.String">Location of the JDK</Field><Field name="UeType" type="java.lang.String">V</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpTxtHeader"><Field name="Enc" type="java.lang.String">null</Field><Field name="EncKey" type="java.lang.String">null</Field><Field name="ITxt" type="com.sunopsis.sql.DbInt">3313091</Field><Field name="ITxtOrig" type="com.sunopsis.sql.DbInt">111</Field><Field name="SqlIndGrp" type="java.lang.String">0</Field><Field name="Txt" type="java.lang.String">
Examples:
  $ODI_JAVA_HOME on Unix
  %ODI_JAVA_HOME% on Windows
  /usr/lib/jvm/java-7-openjdk-amd64</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpOrigTxt"><Field name="ITxtOrig" type="com.sunopsis.sql.DbInt">111</Field><Field name="OrigineName" type="java.lang.String">User Exit help</Field><Field name="SnpsCol" type="java.lang.String">I_TXT_UE_HELP</Field><Field name="SnpsTable" type="java.lang.String">SNP_USER_EXIT</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpUserExit"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="IndChange" type="java.lang.String">I</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt">3314091</Field><Field name="ITxtValue" type="com.sunopsis.sql.DbInt">null</Field><Field name="IUserExit" type="com.sunopsis.sql.DbInt">765091</Field><Field name="Position" type="com.sunopsis.sql.DbInt">null</Field><Field name="ShortValue" type="java.lang.String">C:/oracle/product/11.1.1/Oracle_ODI_1/oracledi.sdk/lib/mail.jar</Field><Field name="UeName" type="java.lang.String">JAVA_CP_JAR</Field><Field name="UeSdesc" type="java.lang.String">Provide the jar name with location</Field><Field name="UeType" type="java.lang.String">V</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpTxtHeader"><Field name="Enc" type="java.lang.String">null</Field><Field name="EncKey" type="java.lang.String">null</Field><Field name="ITxt" type="com.sunopsis.sql.DbInt">3314091</Field><Field name="ITxtOrig" type="com.sunopsis.sql.DbInt">111</Field><Field name="SqlIndGrp" type="java.lang.String">0</Field><Field name="Txt" type="java.lang.String">mail.jar is required for this java file.</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpUserExit"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="IndChange" type="java.lang.String">I</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt">null</Field><Field name="ITxtValue" type="com.sunopsis.sql.DbInt">null</Field><Field name="IUserExit" type="com.sunopsis.sql.DbInt">761091</Field><Field name="Position" type="com.sunopsis.sql.DbInt">null</Field><Field name="ShortValue" type="java.lang.String">[email protected]</Field><Field name="UeName" type="java.lang.String">FROM</Field><Field name="UeSdesc" type="java.lang.String">FROM</Field><Field name="UeType" type="java.lang.String">V</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpUserExit"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="IndChange" type="java.lang.String">I</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt">null</Field><Field name="ITxtValue" type="com.sunopsis.sql.DbInt">null</Field><Field name="IUserExit" type="com.sunopsis.sql.DbInt">762091</Field><Field name="Position" type="com.sunopsis.sql.DbInt">null</Field><Field name="ShortValue" type="java.lang.String">Mail From ODI</Field><Field name="UeName" type="java.lang.String">SUBJECT</Field><Field name="UeSdesc" type="java.lang.String">Subject</Field><Field name="UeType" type="java.lang.String">V</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpUserExit"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="IndChange" type="java.lang.String">I</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt">null</Field><Field name="ITxtValue" type="com.sunopsis.sql.DbInt">null</Field><Field name="IUserExit" type="com.sunopsis.sql.DbInt">763091</Field><Field name="Position" type="com.sunopsis.sql.DbInt">null</Field><Field name="ShortValue" type="java.lang.String">C:/Users/Public</Field><Field name="UeName" type="java.lang.String">TEMP_JAVA_DIR</Field><Field name="UeSdesc" type="java.lang.String">Temp Java File Location</Field><Field name="UeType" type="java.lang.String">V</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpUserExit"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="IndChange" type="java.lang.String">U</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt">null</Field><Field name="ITxtValue" type="com.sunopsis.sql.DbInt">null</Field><Field name="IUserExit" type="com.sunopsis.sql.DbInt">764091</Field><Field name="Position" type="com.sunopsis.sql.DbInt">null</Field><Field name="ShortValue" type="java.lang.String">null</Field><Field name="UeName" type="java.lang.String">USERNAME</Field><Field name="UeSdesc" type="java.lang.String">null</Field><Field name="UeType" type="java.lang.String">T</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpUserExit"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="IndChange" type="java.lang.String">U</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt">null</Field><Field name="ITxtValue" type="com.sunopsis.sql.DbInt">null</Field><Field name="IUserExit" type="com.sunopsis.sql.DbInt">757091</Field><Field name="Position" type="com.sunopsis.sql.DbInt">null</Field><Field name="ShortValue" type="java.lang.String">null</Field><Field name="UeName" type="java.lang.String">PASSWORD</Field><Field name="UeSdesc" type="java.lang.String">null</Field><Field name="UeType" type="java.lang.String">T</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpUserExit"><Field name="ExtVersion" type="java.lang.String">null</Field><Field name="IndChange" type="java.lang.String">I</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt">null</Field><Field name="ITxtValue" type="com.sunopsis.sql.DbInt">null</Field><Field name="IUserExit" type="com.sunopsis.sql.DbInt">760091</Field><Field name="Position" type="com.sunopsis.sql.DbInt">null</Field><Field name="ShortValue" type="java.lang.String">[email protected]</Field><Field name="UeName" type="java.lang.String">TO</Field><Field name="UeSdesc" type="java.lang.String">Target User ID</Field><Field name="UeType" type="java.lang.String">V</Field></Object><Object class="com.sunopsis.dwg.dbobj.SnpLineTrt"><Field name="AlwaysExe" type="java.lang.String">0</Field><Field name="ColConnectId" type="java.lang.String">null</Field><Field name="ColContextCode" type="java.lang.String">null</Field><Field name="ColIndCommit" type="java.lang.String">null</Field><Field name="ColIsolLevel" type="java.lang.String">null</Field><Field name="ColITxt" type="com.sunopsis.sql.DbInt">null</Field><Field name="ColLschemaName" type="java.lang.String">null</Field><Field name="ColPlanComp" type="java.lang.String">null</Field><Field name="ColTechno" type="java.lang.String">null</Field><Field name="DefConnectId" type="java.lang.String">null</Field><Field name="DefContextCode" type="java.lang.String">null</Field><Field name="DefIndCommit" type="java.lang.String">null</Field><Field name="DefIsolLevel" type="java.lang.String">null</Field><Field name="DefITxt" type="com.sunopsis.sql.DbInt">3315091</Field><Field name="DefLschemaName" type="java.lang.String">null</Field><Field name="DefPlanComp" type="java.lang.String">null</Field><Field name="DefTechno" type="java.lang.String">SUNOPSIS_API</Field><Field name="FirstDate" type="java.sql.Timestamp">2012-12-20 14:28:40.0</Field><Field name="FirstUser" type="java.lang.String">SUPERVISOR</Field><Field name="IndErr" type="java.lang.String">0</Field><Field name="IndLogFinalCmd" type="java.lang.String">0</Field><Field name="IndLogMethod" type="java.lang.String">null</Field><Field name="IndLogNb" type="java.lang.String">null</Field><Field name="ITrt" type="com.sunopsis.sql.DbInt">123091</Field><Field name="KcmAk" type="java.lang.String">0</Field><Field name="KcmCond" type="java.lang.String">0</Field><Field name="KcmErrDel" type="java.lang.String">0</Field><Field name="KcmJoin" type="java.lang.String">0</Field><Field name="KcmNull" type="java.lang.String">0</Field><Field name="KcmPk" type="java.lang.String">0</Field><Field name="KimDrvdSel" type="java.lang.String">0</Field><Field name="KimIdx" type="java.lang.String">0</Field><Field name="KimJrn" type="java.lang.String">0</Field><Field name="KimJrnPop" type="java.lang.String">0</Field><Field name="KjmCreate" type="java.lang.String">0</Field><Field name="KjmDrop" type="java.lang.String">0</Field><Field name="KjmExtend" type="java.lang.String">0</Field><Field name="KjmLock" type="java.lang.String">0</Field><Field name="KjmPurge" type="java.lang.String">0</Field><Field name="KjmSetInstall" type="java.lang.String">0</Field><Field name="KjmSetUninstall" type="java.lang.String">0</Field><Field name="KjmSubscribe" type="java.lang.String">0</Field><Field name="KjmTableOrder" type="java.lang.String">0</Field><Field name="KjmUnlock" type="java.lang.String">0</Field><Field name="KjmUnsubscribe" type="java.lang.String">0</Field><Field name="KlmAfterInt" type="java.lang.String">0&

Similar Messages

  • Getting Error in Execution of Interface in ODI

    Requirement: To transfer data from Oracle to SQL server.
    LKM Used : LKM SQL to SQL
    Getting Below Error In Executing the Interface.
    ODI-1226: Step --------INTERFACE NAME------ fails after 1 attempt
    (s).ODI-1240 :Flow --Interface Name--- fails while performing load operation.
    CODE for Interface where execution failed:
    Source Code :

    I am also getting the following error at the create work table at time of execution of the interface.
    -3551 : 37000 : java.sql.SQLException: [Microsoft][ODBC Excel Driver] Syntax error in CREATE TABLE statement.
    java.sql.SQLException: [Microsoft][ODBC Excel Driver] Syntax error in CREATE TABLE statement.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.SQLPrepare(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(Unknown Source)
         at com.sunopsis.sql.SnpsQuery.a(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.a(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Thankx in advance
    Nick

  • Sender Mail Adapter - default interface name

    Hi,
    I need to receive through one e-mail sender channel tree different kind of messages.
    In sender mail adapter I specify ecept other parameters "Default Interface Name". When I send a message with a same as defined in an interface the message is processed correctly.
    But when I send a different kind of message then I get an error : "Receiver could not be determined".
    Is any way around how through one sender e-mail adapter receive a different kinds of messages ?
    Thanks for any help,
    Marian

    Hello Marzian,
    have you find a solution for this problem?
    We're facing the same issue.
    thanks,
    -Peter Ha

  • Alert not sending mail even if executed successfully.

    hi all,
    I have created alert in R12 environment. it is periodic alert which will fire everyday.
    There are 2 actions
    1. Run the Concurrent program and insert values emp_no,emp_name,manager_name,manager_mail into custom table.
    2. Send mail to manager_mail containing data like emp_no and emp_name.
    I encapsulated both the action in one action set. Sequencing 1. Concurrent Program ( Detail Level) 2. Send mail (detail level)
    When i am executing alert, it is ending with completed successfully. It is inserting data into custom table but it is not sending mail to manager mail id.
    When i tried to check history, it is showing 'n' number of exceptions, but all those exception are not available in FIND EXCEPTION tab.
    I m not able to find out, what exactly wrong i have done.
    Query is:
    Select emp_no,emp_name,manager_name,manager_mail into
    &l_emp_no,&emp_name,l_manager_name,l_manager_mail from xx_alert_table_data;
    and I am passing &l_manager_mail into 'To' section of send_mail action. it is not containing any null data. all the email address are present in that field.
    please suggest if i m doing anything wrong.

    Just putting the data into tables is not the actual process, performing the connection to the email server and sending email.
    Underneath it's a multilayered process .
    Oracle Alert uses Oracle Workflow Notification mailer for sending requests, which in turn uses mailer program to send mails.
    So, you need first to check the state of Notification mailer then locate logs of the mailer utulity used by these and see whether there were any connection/negotiation errors and what information in header fields has been actually sent.
    To see notification mailer program status change responsibility to Workflow Manager, then go to "Service Components" section and find there Workflow Notification process.
    To find the mailer type, change responsibility to Alert Manager, then go to System->Options and see which mailer is in use.
    Usually on Unix, sendmail is used, so you may easily turn on debug logging and see the mail headers and complete negitiation logs, if you need them.

  • Send Mail from webmail interface, appearing to be from gmail account

    I thought this topic came up during the .mac/mobileme debacle that occurred a while back, but i can't find anything about it. Here is my scenario. I use my .mac address as my main email address and use aliases for website signups, etc. -- anywhere i don't want to give out my "good" address. However, i am in the middle of job searching and have created a new gmail address specifically for that - it keeps things cleaner and allows me to give out a very specific address -- in the past i've found my email ends up earning me spam when job searching. So here's what i want to do. I want to be able to send/receive mail from my Mail application AS WELL AS the mobile me webmail -- is this possible? so that when a potential employer gets the email it is from my "job search address" but allows the convenience of a single hub (versus logging into gmail separately from my mobilme.
    Any suggestions? Thanks in advance for your thoughts - i really appreciate it!

    You can't send mail from the MobileMe web client that appears to be from Gmail. You could send email from Gmail via Mail, which is quite easy and you would not have to pretend that it's from somewhere else. And if someone sends you an email related to your job search, you can receive it via Mail and then BCC it to your .Mac account.
    Mulder

  • Sender Mail Adapter Configuration - Process Multiple Attachments

    Dear sirs,
    I need to process several attachments at the same mail message as individual payloads.
    In default configuration of sender mail adapter only the body of message is used as payload.
    So I added PayloadSwapBean Module at Processing Sequence and it processed the attachment I set in Module Configuration.  I'm not able to process all attachments available, just one attachment is sent to PI pipeline.
    How can I process all attachments of a single mail message?
    Thank you in advance.
    Fabio Purcino

    Hi Jose,
    We are trying to implement reading multiple attachment in sender mail adapter. 
    Our Requirement is : Reading a mail having multiple .xls files. This should be read and converted to payload .
    package multiswap;
    //import com.sap.aii.adapter.xi.ms.XIMessage;
    import com.sap.aii.af.lib.mp.module.*;
    import com.sap.aii.af.lib.trace.Trace;
    import com.sap.aii.af.sdk.xi.mo.Message;
    import com.sap.aii.af.sdk.xi.mo.MessageContext;
    import com.sap.aii.af.sdk.xi.mo.xmb.XMBMessageOperator;
    import com.sap.aii.af.sdk.xi.mo.xmb.XMBPayload;
    import com.sap.aii.af.sdk.xi.util.PayloadType;
    import com.sap.aii.af.service.auditlog.Audit;
    import com.sap.aii.af.service.cpa.*;
    import com.sap.engine.interfaces.messaging.api.MessageDirection;
    import com.sap.engine.interfaces.messaging.api.MessageKey;
    import com.sap.engine.interfaces.messaging.api.Payload;
    import com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus;
    import java.util.Hashtable;
    import java.util.Iterator;
    import java.util.Locale;
    import javax.ejb.*;
    public class MultiSwapRead
        implements SessionBean, Module
        private static final String VERSION_ID = "$Id: //tc/xpi.af/NW731EXT_07_REL/src/_af_application_ejb_module/ejbm/api/com/sap" +
    "/aii/af/app/modules/PayloadSwapBean.java#1 $"
        private static final Trace TRACE = new Trace("$Id: //tc/xpi.af/NW731EXT_07_REL/src/_af_application_ejb_module/ejbm/api/com/sap" +
    "/aii/af/app/modules/PayloadSwapBean.java#1 $"
        private static final String SIGNATURE_PROCESS = "process(ModuleContext , ModuleData)";
        protected Hashtable cachedChannels;
        protected SessionContext myContext;
        public MultiSwapRead()
            cachedChannels = new Hashtable();
        public void ejbRemove()
        public void ejbActivate()
        public void ejbPassivate()
        public void setSessionContext(SessionContext context)
            myContext = context;
        public void ejbCreate()
            throws CreateException
        public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
            throws ModuleException
            if(TRACE.beLogged(200))
                TRACE.entering("process(ModuleContext , ModuleData)", new Object[] {
                    moduleContext, inputModuleData
            ModuleData outputModuleData;
            Iterator itr;
            outputModuleData = inputModuleData;
            String chid = moduleContext.getChannelID();
            TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, (new StringBuilder()).append("performing payload swap for channel ").append(chid).toString());
            LookupManager lman = LookupManager.getInstance();
            Channel chan = null;
      try {
      chan = (Channel)LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, chid);
      } catch (CPAObjectNotFoundException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
      } catch (CPAException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
            Direction direction = chan.getDirection();
            String swapkey = moduleContext.getContextData("swap.keyName");
            String keyvalue = moduleContext.getContextData("swap.keyValue");
            Object obj = inputModuleData.getPrincipalData();
            Object pivotedObj = inputModuleData.getSupplementalData("mp.pivoted");
            boolean pivoted = pivotedObj == null || !(pivotedObj instanceof Boolean) ? false : ((Boolean)pivotedObj).booleanValue();
            Message mo = null;
            if(obj instanceof com.sap.engine.interfaces.messaging.api.Message)
                mo = (Message)((com.sap.engine.interfaces.messaging.api.Message)obj);
            } else
            if(obj instanceof MessageContext)
                mo = ((MessageContext)obj).getMessage();
            } else
                TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "no message found");
            if(mo != null && XMBMessageOperator.numberOfPayloads(mo) > 0)
               // String midstr = XMBMessageOperator.getMessageId(mo).toString();
                MessageKey auditkey = new MessageKey(((com.sap.engine.interfaces.messaging.api.Message) mo).getMessageId(), com.sap.engine.interfaces.messaging.api.MessageDirection.INBOUND);
                itr = (Iterator) mo.getAttachments();
                if(swapkey != null && keyvalue != null)
                    StringBuffer textSwappingbyBuf = new StringBuffer();
                    textSwappingbyBuf.append("Swap: swapping by '").append(swapkey).append("' ? '").append(keyvalue).append("'");
                    String textSwappingby = textSwappingbyBuf.toString();
                    TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, textSwappingby);
                    Audit.addAuditLogEntry(auditkey, AuditLogStatus.SUCCESS, textSwappingby);
                   while (itr.hasNext()){
                    boolean swappedp = swapPayloads(mo, swapkey, keyvalue);
                    String swappedStatus = swappedp ? "Swap: successfully swapped" : "Swap: no matching payload found";
                    Audit.addAuditLogEntry(auditkey, AuditLogStatus.SUCCESS, swappedStatus);
                } else
                    StringBuffer textInvalidBuf = new StringBuffer();
                    textInvalidBuf.append("Swap: parameter missing ");
                    if(swapkey == null)
                        textInvalidBuf.append("swap.keyName");
                    if(swapkey == null && keyvalue == null)
                        textInvalidBuf.append(" and ");
                    if(keyvalue == null)
                        textInvalidBuf.append("swap.keyValue");
                    String textInvalid = textInvalidBuf.toString();
                    TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, textInvalid);
                    Audit.addAuditLogEntry(auditkey, AuditLogStatus.WARNING, textInvalid);
            } else
                String messageEmpty = "Swap: message is empty or has no payload";
                TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, messageEmpty);
            return outputModuleData;
        private static boolean swapPayloads(Message mo, String swapkey, String keyvalue)
            swapkey = swapkey.toUpperCase(Locale.ENGLISH);
            keyvalue = keyvalue.toUpperCase(Locale.ENGLISH);
            int ifound = -1;
            for(int i = 0; i < XMBMessageOperator.numberOfPayloads(mo); i++)
                XMBPayload pldi = XMBMessageOperator.getPayload(mo, i);
                String pldivalue = null;
                if(swapkey.equals("PAYLOAD-DESCRIPTION"))
                    pldivalue = pldi.getPayloadDescription();
                } else
                if(swapkey.equals("PAYLOAD-NAME"))
                    pldivalue = pldi.getPayloadName();
                } else
                    pldivalue = pldi.getContentAttribute(swapkey);
                if(pldivalue == null)
                    continue;
                pldivalue = pldivalue.toUpperCase(Locale.ENGLISH);
                if(pldivalue.indexOf(keyvalue) < 0)
                    continue;
                ifound = i;
                break;
            if(ifound >= 0)
                XMBPayload pldfound = XMBMessageOperator.getPayload(mo, ifound);
                if(pldfound.getPayloadType() != PayloadType.APPLICATION)
                    XMBPayload pldapp = XMBMessageOperator.getApplicationPayload(mo);
                    if(pldapp == null)
                        pldfound.setPayloadType(PayloadType.APPLICATION);
                    } else
                        pldapp.setPayloadType(PayloadType.APPLICATION_ATTACHMENT);
                        pldfound.setPayloadType(PayloadType.APPLICATION);
                    TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "successfully swapped");
                return true;
            } else
                TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "no matching found");
                return false;
    We couldn't go further. Please have a look in highlighted code.
    Regards,
    Kesava.

  • Script task fails to send mail to GMAIL

    Hi   guys ,
       I am new here and i am glad i that i am here.  I am working in a company  as SQL Server developer(T-sql), i am learning SSIS because  i wanted to move to data warehousing.
    I not familiar and i don't know any thing about  C#,  but i am learning SSIS on my own.
    I tried to send mail to gmail  using script task , both sender and receiver with same mail ID using variables which i tried using tutorial i found from the below link.
    [quote]http://www.codeproject.com/Articles/85172/Send-Email-from-SSIS-with-option-to-indicate-Email[/quote]
    but finally when i execute the task , it returns failure message and email is not sent.
    [quote]SSIS package "Send mail using script task.dtsx" starting.
    Error: 0x8 at Script Task: The script returned a failure result.
    Task failed: Script Task
    SSIS package "Send mail using script task.dtsx" finished: Success.
    [/quote]
    Below message taken from progress tab
    [quote]Error: The script returned a failure result.[/quote]
    Can you all please help me in  finding where i am going wrong? please check below code which i have used in script task.
    Microsoft SQL Server Integration Services Script Task
    Write scripts using Microsoft Visual C# 2008.
    The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    using System.Text.RegularExpressions;
    using System.Net.Mail;
    namespace ST_9bc84810a62a401aa44ddd905bcd369d.csproj
    [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
    public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    #region VSTA generated code
    enum ScriptResults
    Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    #endregion
    The execution engine calls this method when the task executes.
    To access the object model, use the Dts property. Connections, variables, events,
    and logging features are available as members of the Dts property as shown in the following examples.
    To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
    To post a log entry, call Dts.Log("This is my log text", 999, null);
    To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
    To use the connections collection use something like the following:
    ConnectionManager cm = Dts.Connections.Add("OLEDB");
    cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
    Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
    To open Help, press F1.
    public void Main()
    string sSubject = "Test Subject";
    string sBody = "Test Message";
    int iPriority = 2;
    if (SendMail(sSubject, sBody, iPriority))
    Dts.TaskResult = (int)ScriptResults.Success;
    else
    //Fails the Task
    Dts.TaskResult = (int)ScriptResults.Failure;
    public bool SendMail(string sSubject, string sMessage, int iPriority)
    try
    string sEmailServer = Dts.Variables["sEmailServer"].Value.ToString();
    string sEmailPort = Dts.Variables["sEmailPort"].Value.ToString();
    string sEmailUser = Dts.Variables["sEmailUser"].Value.ToString();
    string sEmailPassword = Dts.Variables["sEmailPassword"].Value.ToString();
    string sEmailSendTo = Dts.Variables["sEmailSendTo"].Value.ToString();
    string sEmailSendCC = Dts.Variables["sEmailSendCC"].Value.ToString();
    string sEmailSendFrom = Dts.Variables["sEmailSendFrom"].Value.ToString();
    string sEmailSendFromName = Dts.Variables["sEmailSendFromName"].Value.ToString();
    SmtpClient smtpClient = new SmtpClient();
    MailMessage message = new MailMessage();
    MailAddress fromAddress = new MailAddress(sEmailSendFrom, sEmailSendFromName);
    //You can have multiple emails separated by ;
    string[] sEmailTo = Regex.Split(sEmailSendTo, ";");
    string[] sEmailCC = Regex.Split(sEmailSendCC, ";");
    int sEmailServerSMTP = int.Parse(sEmailPort);
    smtpClient.Host = sEmailServer;
    smtpClient.Port = sEmailServerSMTP;
    System.Net.NetworkCredential myCredentials =
    new System.Net.NetworkCredential(sEmailUser, sEmailPassword);
    smtpClient.Credentials = myCredentials;
    message.From = fromAddress;
    if (sEmailTo != null)
    for (int i = 0; i < sEmailTo.Length; ++i)
    if (sEmailTo[i] != null && sEmailTo[i] != "")
    message.To.Add(sEmailTo[i]);
    if (sEmailCC != null)
    for (int i = 0; i < sEmailCC.Length; ++i)
    if (sEmailCC[i] != null && sEmailCC[i] != "")
    message.To.Add(sEmailCC[i]);
    switch (iPriority)
    case 1:
    message.Priority = MailPriority.High;
    break;
    case 3:
    message.Priority = MailPriority.Low;
    break;
    default:
    message.Priority = MailPriority.Normal;
    break;
    //You can enable this for Attachments.
    //SingleFile is a string variable for the file path.
    //foreach (string SingleFile in myFiles)
    // Attachment myAttachment = new Attachment(SingleFile);
    // message.Attachments.Add(myAttachment);
    message.Subject = sSubject;
    message.IsBodyHtml = true;
    message.Body = sMessage;
    smtpClient.Send(message);
    return true;
    catch (Exception ex)
    return false;
    Please help me resolve this guys ... THANKS IN ADVANCE

    Thank you very much for your reply @Elvis Long,
    Sorry for the late reply
    Actually, i am not trying or executing this task  from my office , but i am trying this at my home :( .
    sEmailPort has value 587 sEmailServer has smtp.gmail.com
    Can you please check whether this C# coding is correct or not ? because finally it gives error saying "Script
    Task: The script returned a failure result" 
    so can you please check this with your system and let me know what is wrong with this code
    Thanks in advance  

  • Bursting Program not sending mails

    Bursting Program is not sending mails , we have checked everything and looking good , not generating logs.
    XML Publisher: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XDOBURSTREP module: XML Publisher Report Bursting Program
    +---------------------------------------------------------------------------+
    Current system time is 14-JAN-2014 07:50:56
    +---------------------------------------------------------------------------+
    XML/BI Publisher Version : 5.6.3
    Request ID: 101436869
    All Parameters: Dummy for Data Security=Y:ReportRequestID=101245852:DebugFlag=Y
    Report Req ID: 101245852
    Debug Flag: Y
    Updating request description
    Updated description
    Retrieving XML request information
    Node Name:RPC5150
    Preparing parameters
    null output =/u000/oracle/PTCCON/apps/apps_st/appl/xdo/12.0.0/out/ESCM1/EM185082.101436869
    inputfilename =/u000/oracle/PTCCON/apps/apps_st/appl/ncr_custom/ncrx/12.0.0/out/ESCM1/EM185082.101245852
    Data XML File:/u000/oracle/PTCCON/apps/apps_st/appl/ncr_custom/ncrx/12.0.0/out/ESCM1/EM185082.101245852
    Set Bursting parameters..
    Temp. Directory:/tmp
    [011414_075107900][][STATEMENT] Oracle XML Parser version ::: Oracle XML Developers Kit 10.1.3.130 - Production
    [011414_075107910][][STATEMENT] setOAProperties called..
    Bursting propertes.....
    {user-variable:cp:territory=US, user-variable:cp:ReportRequestID=101245852, user-variable:cp:language=en, user-variable:cp:responsibility=51687, user-variable.OA_MEDIA=http://ESPROD.daytonoh.ncr.com:8008/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=101245852, user-variable:cp:locale=en-US, user-variable:cp:user=EM185082, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=101436869, user-variable:cp:org_id=152, user-variable:cp:reportdescription=NCR_MFS_ACKNWLG_PDF_REP, user-variable:cp:Dummy for Data Security=Y}
    Start bursting process..
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 14-JAN-2014 07:51:08
    +---------------------------------------------------------------------------+

    I was troubleshooting my own issue noted above and tried to send the attachments via gmail's web interface (bypassing Apple Mail). This time, gmail provided an error message stating that the file contained a virus.
    Since it was a zip of several Word docs, I saved them as PDFs and then rezipped, and Apple Mail sent them off like a champ.
    Evidently, Mail does not have a method for relaying the precise nature of the error message that gmail sends (in this case that the attachment had what gmail thought was a virus). This would be a prime area for some software developers to tackle on a future version of Mail.
    By the way, the files almost certainly do not contain viruses; they are extremely old Word Docs that have been on my successive Mac hard drives for at least 9 years. Too old a format for gmail to recognize?
    Hope this helps someone who may be having the same trouble.

  • Setting Up Mailserver to received and Send Mail for external Network

    I have a G5 currenty running 10.3.9 Server with Mail services run and working fine, we are upgrading to 10.4 Server and would like our Sales Reps the ability to send and Receive mail from outside the office. How do I configure my server, Router, ISP and/or Mail clients to do this??? we are currently able to recieve mail from outside just not send.

    I cannot find the Line #submission inet n - n -- smtpd in the Main.CF file...here is what I get when I open it
    # Global Postfix configuration file. This file lists only a subset
    # of all 250+ parameters. See the sample-xxx.cf files for a full list.
    # The general format is lines with parameter = value pairs. Lines
    # that begin with whitespace continue the previous line. A value can
    # contain references to other $names or ${name}s.
    # NOTE - CHANGE NO MORE THAN 2-3 PARAMETERS AT A TIME, AND TEST IF
    # POSTFIX STILL WORKS AFTER EVERY CHANGE.
    # SOFT BOUNCE
    # The soft_bounce parameter provides a limited safety net for
    # testing. When soft_bounce is enabled, mail will remain queued that
    # would otherwise bounce. This parameter disables locally-generated
    # bounces, and prevents the SMTP server from rejecting mail permanently
    # (by changing 5xx replies into 4xx replies). However, soft_bounce
    # is no cure for address rewriting mistakes or mail routing mistakes.
    #soft_bounce = no
    # LOCAL PATHNAME INFORMATION
    # The queue_directory specifies the location of the Postfix queue.
    # This is also the root directory of Postfix daemons that run chrooted.
    # See the files in examples/chroot-setup for setting up Postfix chroot
    # environments on different UNIX systems.
    queue_directory = /private/var/spool/postfix
    # The command_directory parameter specifies the location of all
    # postXXX commands.
    command_directory = /usr/sbin
    # The daemon_directory parameter specifies the location of all Postfix
    # daemon programs (i.e. programs listed in the master.cf file). This
    # directory must be owned by root.
    daemon_directory = /usr/libexec/postfix
    # QUEUE AND PROCESS OWNERSHIP
    # The mail_owner parameter specifies the owner of the Postfix queue
    # and of most Postfix daemon processes. Specify the name of a user
    # account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
    # AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
    # particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
    # USER.
    mail_owner = postfix
    # The default_privs parameter specifies the default rights used by
    # the local delivery agent for delivery to external file or command.
    # These rights are used in the absence of a recipient user context.
    # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
    #default_privs = nobody
    # INTERNET HOST AND DOMAIN NAMES
    # The myhostname parameter specifies the internet hostname of this
    # mail system. The default is to use the fully-qualified domain name
    # from gethostname(). $myhostname is used as a default value for many
    # other configuration parameters.
    #myhostname = host.domain.tld
    #myhostname = virtual.domain.tld
    # The mydomain parameter specifies the local internet domain name.
    # The default is to use $myhostname minus the first component.
    # $mydomain is used as a default value for many other configuration
    # parameters.
    #mydomain = domain.tld
    # SENDING MAIL
    # The myorigin parameter specifies the domain that locally-posted
    # mail appears to come from. The default is to append $myhostname,
    # which is fine for small sites. If you run a domain with multiple
    # machines, you should (1) change this to $mydomain and (2) set up
    # a domain-wide alias database that aliases each user to
    # [email protected].
    # For the sake of consistency between sender and recipient addresses,
    # myorigin also specifies the default domain name that is appended
    # to recipient addresses that have no @domain part.
    #myorigin = $myhostname
    #myorigin = $mydomain
    # RECEIVING MAIL
    # The inet_interfaces parameter specifies the network interface
    # addresses that this mail system receives mail on. By default,
    # the software claims all active interfaces on the machine. The
    # parameter also controls delivery of mail to user@[ip.address].
    # See also the proxy_interfaces parameter, for network addresses that
    # are forwarded to us via a proxy or network address translator.
    # Note: you need to stop/start Postfix when this parameter changes.
    #inet_interfaces = all
    #inet_interfaces = $myhostname
    #inet_interfaces = $myhostname, localhost
    # The proxy_interfaces parameter specifies the network interface
    # addresses that this mail system receives mail on by way of a
    # proxy or network address translation unit. This setting extends
    # the address list specified with the inet_interfaces parameter.
    # You must specify your proxy/NAT addresses when your system is a
    # backup MX host for other domains, otherwise mail delivery loops
    # will happen when the primary MX host is down.
    #proxy_interfaces =
    #proxy_interfaces = 1.2.3.4
    # The mydestination parameter specifies the list of domains that this
    # machine considers itself the final destination for.
    # These domains are routed to the delivery agent specified with the
    # local_transport parameter setting. By default, that is the UNIX
    # compatible delivery agent that lookups all recipients in /etc/passwd
    # and /etc/aliases or their equivalent.
    # The default is $myhostname + localhost.$mydomain. On a mail domain
    # gateway, you should also include $mydomain.
    # Do not specify the names of virtual domains - those domains are
    # specified elsewhere (see sample-virtual.cf).
    # Do not specify the names of domains that this machine is backup MX
    # host for. Specify those names via the relay_domains settings for
    # the SMTP server, or use permit_mx_backup if you are lazy (see
    # sample-smtpd.cf).
    # The local machine is always the final destination for mail addressed
    # to user@[the.net.work.address] of an interface that the mail system
    # receives mail on (see the inet_interfaces parameter).
    # Specify a list of host or domain names, /file/name or type:table
    # patterns, separated by commas and/or whitespace. A /file/name
    # pattern is replaced by its contents; a type:table is matched when
    # a name matches a lookup key (the right-hand side is ignored).
    # Continue long lines by starting the next line with whitespace.
    # See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
    #mydestination = $myhostname, localhost.$mydomain
    #mydestination = $myhostname, localhost.$mydomain $mydomain
    #mydestination = $myhostname, localhost.$mydomain, $mydomain,
    # mail.$mydomain, www.$mydomain, ftp.$mydomain
    # REJECTING MAIL FOR UNKNOWN LOCAL USERS
    # The local_recipient_maps parameter specifies optional lookup tables
    # with all names or addresses of users that are local with respect
    # to $mydestination and $inet_interfaces.
    # If this parameter is defined, then the SMTP server will reject
    # mail for unknown local users. This parameter is defined by default.
    # To turn off local recipient checking in the SMTP server, specify
    # local_recipient_maps = (i.e. empty).
    # The default setting assumes that you use the default Postfix local
    # delivery agent for local delivery. You need to update the
    # local_recipient_maps setting if:
    # - You define $mydestination domain recipients in files other than
    # /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
    # For example, you define $mydestination domain recipients in
    # the $virtual_mailbox_maps files.
    # - You redefine the local delivery agent in master.cf.
    # - You redefine the "local_transport" setting in main.cf.
    # - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
    # feature of the Postfix local delivery agent (see sample-local.cf).
    # Details are described in the LOCAL_RECIPIENT_README file.
    # Beware: if the Postfix SMTP server runs chrooted, you probably have
    # to access the passwd file via the proxymap service, in order to
    # overcome chroot restrictions. The alternative, having a copy of
    # the system passwd file in the chroot jail is just not practical.
    # The right-hand side of the lookup tables is conveniently ignored.
    # In the left-hand side, specify a bare username, an @domain.tld
    # wild-card, or specify a [email protected] address.
    #local_recipient_maps = unix:passwd.byname $alias_maps
    #local_recipient_maps = proxy:unix:passwd.byname $alias_maps
    #local_recipient_maps =
    # The unknown_local_recipient_reject_code specifies the SMTP server
    # response code when a recipient domain matches $mydestination or
    # $inet_interfaces, while $local_recipient_maps is non-empty and the
    # recipient address or address local-part is not found.
    # The default setting is 550 (reject mail) but it is safer to start
    # with 450 (try again later) until you are certain that your
    # local_recipient_maps settings are OK.
    #unknown_local_recipient_reject_code = 550
    unknown_local_recipient_reject_code = 450
    # TRUST AND RELAY CONTROL
    # The mynetworks parameter specifies the list of "trusted" SMTP
    # clients that have more privileges than "strangers".
    # In particular, "trusted" SMTP clients are allowed to relay mail
    # through Postfix. See the smtpd_recipient_restrictions parameter
    # in file sample-smtpd.cf.
    # You can specify the list of "trusted" network addresses by hand
    # or you can let Postfix do it for you (which is the default).
    # By default (mynetworks_style = subnet), Postfix "trusts" SMTP
    # clients in the same IP subnetworks as the local machine.
    # On Linux, this does works correctly only with interfaces specified
    # with the "ifconfig" command.
    # Specify "mynetworks_style = class" when Postfix should "trust" SMTP
    # clients in the same IP class A/B/C networks as the local machine.
    # Don't do this with a dialup site - it would cause Postfix to "trust"
    # your entire provider's network. Instead, specify an explicit
    # mynetworks list by hand, as described below.
    # Specify "mynetworks_style = host" when Postfix should "trust"
    # only the local machine.
    #mynetworks_style = class
    #mynetworks_style = subnet
    #mynetworks_style = host
    # Alternatively, you can specify the mynetworks list by hand, in
    # which case Postfix ignores the mynetworks_style setting.
    # Specify an explicit list of network/netmask patterns, where the
    # mask specifies the number of bits in the network part of a host
    # address.
    # You can also specify the absolute pathname of a pattern file instead
    # of listing the patterns here. Specify type:table for table-based lookups
    # (the value on the table right-hand side is not used).
    #mynetworks = 168.100.189.0/28, 127.0.0.0/8
    #mynetworks = $config_directory/mynetworks
    #mynetworks = hash:/etc/postfix/network_table
    # The relay_domains parameter restricts what destinations this system will
    # relay mail to. See the smtpd_recipient_restrictions restriction in the
    # file sample-smtpd.cf for detailed information.
    # By default, Postfix relays mail
    # - from "trusted" clients (IP address matches $mynetworks) to any destination,
    # - from "untrusted" clients to destinations that match $relay_domains or
    # subdomains thereof, except addresses with sender-specified routing.
    # The default relay_domains value is $mydestination.
    # In addition to the above, the Postfix SMTP server by default accepts mail
    # that Postfix is final destination for:
    # - destinations that match $inet_interfaces,
    # - destinations that match $mydestination
    # - destinations that match $virtual_alias_domains,
    # - destinations that match $virtual_mailbox_domains.
    # These destinations do not need to be listed in $relay_domains.
    # Specify a list of hosts or domains, /file/name patterns or type:name
    # lookup tables, separated by commas and/or whitespace. Continue
    # long lines by starting the next line with whitespace. A file name
    # is replaced by its contents; a type:name table is matched when a
    # (parent) domain appears as lookup key.
    # NOTE: Postfix will not automatically forward mail for domains that
    # list this system as their primary or backup MX host. See the
    # permit_mx_backup restriction in the file sample-smtpd.cf.
    #relay_domains = $mydestination
    # INTERNET OR INTRANET
    # The relayhost parameter specifies the default host to send mail to
    # when no entry is matched in the optional transport(5) table. When
    # no relayhost is given, mail is routed directly to the destination.
    # On an intranet, specify the organizational domain name. If your
    # internal DNS uses no MX records, specify the name of the intranet
    # gateway host instead.
    # In the case of SMTP, specify a domain, host, host:port, [host]:port,
    # [address] or [address]:port; the form [host] turns off MX lookups.
    # If you're connected via UUCP, see also the default_transport parameter.
    #relayhost = $mydomain
    #relayhost = gateway.my.domain
    #relayhost = uucphost
    #relayhost = [an.ip.add.ress]
    # REJECTING UNKNOWN RELAY USERS
    # The relay_recipient_maps parameter specifies optional lookup tables
    # with all addresses in the domains that match $relay_domains.
    # If this parameter is defined, then the SMTP server will reject
    # mail for unknown relay users. This feature is off by default.
    # The right-hand side of the lookup tables is conveniently ignored.
    # In the left-hand side, specify an @domain.tld wild-card, or specify
    # a [email protected] address.
    #relay_recipient_maps = hash:/etc/postfix/relay_recipients
    # INPUT RATE CONTROL
    # The in_flow_delay configuration parameter implements mail input
    # flow control. This feature is turned on by default, although it
    # still needs further development (it's disabled on SCO UNIX due
    # to an SCO bug).
    # A Postfix process will pause for $in_flow_delay seconds before
    # accepting a new message, when the message arrival rate exceeds the
    # message delivery rate. With the default 50 SMTP server process
    # limit, this limits the mail inflow to 50 messages a second more
    # than the number of messages delivered per second.
    # Specify 0 to disable the feature. Valid delays are 0..10.
    #in_flow_delay = 1s
    # ADDRESS REWRITING
    # Insert text from sample-rewrite.cf if you need to do address
    # masquerading.
    # Insert text from sample-canonical.cf if you need to do address
    # rewriting, or if you need username->Firstname.Lastname mapping.
    # ADDRESS REDIRECTION (VIRTUAL DOMAIN)
    # Insert text from sample-virtual.cf if you need virtual domain support.
    # "USER HAS MOVED" BOUNCE MESSAGES
    # Insert text from sample-relocated.cf if you need "user has moved"
    # style bounce messages. Alternatively, you can bounce recipients
    # with an SMTP server access table. See sample-smtpd.cf.
    # TRANSPORT MAP
    # Insert text from sample-transport.cf if you need explicit routing.
    # ALIAS DATABASE
    # The alias_maps parameter specifies the list of alias databases used
    # by the local delivery agent. The default list is system dependent.
    # On systems with NIS, the default is to search the local alias
    # database, then the NIS alias database. See aliases(5) for syntax
    # details.
    # If you change the alias database, run "postalias /etc/aliases" (or
    # wherever your system stores the mail alias file), or simply run
    # "newaliases" to build the necessary DBM or DB file.
    # It will take a minute or so before changes become visible. Use
    # "postfix reload" to eliminate the delay.
    #alias_maps = dbm:/etc/aliases
    #alias_maps = hash:/etc/aliases
    #alias_maps = hash:/etc/aliases, nis:mail.aliases
    #alias_maps = netinfo:/aliases
    # The alias_database parameter specifies the alias database(s) that
    # are built with "newaliases" or "sendmail -bi". This is a separate
    # configuration parameter, because alias_maps (see above) may specify
    # tables that are not necessarily all under control by Postfix.
    #alias_database = dbm:/etc/aliases
    #alias_database = dbm:/etc/mail/aliases
    #alias_database = hash:/etc/aliases
    #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
    # ADDRESS EXTENSIONS (e.g., user+foo)
    # The recipient_delimiter parameter specifies the separator between
    # user names and address extensions (user+foo). See canonical(5),
    # local(8), relocated(5) and virtual(5) for the effects this has on
    # aliases, canonical, virtual, relocated and .forward file lookups.
    # Basically, the software tries user+foo and .forward+foo before
    # trying user and .forward.
    #recipient_delimiter = +
    # DELIVERY TO MAILBOX
    # The home_mailbox parameter specifies the optional pathname of a
    # mailbox file relative to a user's home directory. The default
    # mailbox file is /var/spool/mail/user or /var/mail/user. Specify
    # "Maildir/" for qmail-style delivery (the / is required).
    #home_mailbox = Mailbox
    #home_mailbox = Maildir/
    # The mail_spool_directory parameter specifies the directory where
    # UNIX-style mailboxes are kept. The default setting depends on the
    # system type.
    #mail_spool_directory = /var/mail
    #mail_spool_directory = /var/spool/mail
    # The mailbox_command parameter specifies the optional external
    # command to use instead of mailbox delivery. The command is run as
    # the recipient with proper HOME, SHELL and LOGNAME environment settings.
    # Exception: delivery for root is done as $default_user.
    # Other environment variables of interest: USER (recipient username),
    # EXTENSION (address extension), DOMAIN (domain part of address),
    # and LOCAL (the address localpart).
    # Unlike other Postfix configuration parameters, the mailbox_command
    # parameter is not subjected to $parameter substitutions. This is to
    # make it easier to specify shell syntax (see example below).
    # Avoid shell meta characters because they will force Postfix to run
    # an expensive shell process. Procmail alone is expensive enough.
    # IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
    # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
    #mailbox_command = /some/where/procmail
    #mailbox_command = /some/where/procmail -a "$EXTENSION"
    # The mailbox_transport specifies the optional transport in master.cf
    # to use after processing aliases and .forward files. This parameter
    # has precedence over the mailbox_command, fallback_transport and
    # luser_relay parameters.
    # Specify a string of the form transport:nexthop, where transport is
    # the name of a mail delivery transport defined in master.cf. The
    # :nexthop part is optional. For more details see the sample transport
    # configuration file.
    # NOTE: if you use this feature for accounts not in the UNIX password
    # file, then you must update the "local_recipient_maps" setting in
    # the main.cf file, otherwise the SMTP server will reject mail for
    # non-UNIX accounts with "User unknown in local recipient table".
    #mailbox_transport = lmtp:unix:/file/name
    #mailbox_transport = cyrus
    # The fallback_transport specifies the optional transport in master.cf
    # to use for recipients that are not found in the UNIX passwd database.
    # This parameter has precedence over the luser_relay parameter.
    # Specify a string of the form transport:nexthop, where transport is
    # the name of a mail delivery transport defined in master.cf. The
    # :nexthop part is optional. For more details see the sample transport
    # configuration file.
    # NOTE: if you use this feature for accounts not in the UNIX password
    # file, then you must update the "local_recipient_maps" setting in
    # the main.cf file, otherwise the SMTP server will reject mail for
    # non-UNIX accounts with "User unknown in local recipient table".
    #fallback_transport = lmtp:unix:/file/name
    #fallback_transport = cyrus
    #fallback_transport =
    # The luser_relay parameter specifies an optional destination address
    # for unknown recipients. By default, mail for unknown@$mydestination
    # and unknown@[$inet_interfaces] is returned as undeliverable.
    # The following expansions are done on luser_relay: $user (recipient
    # username), $shell (recipient shell), $home (recipient home directory),
    # $recipient (full recipient address), $extension (recipient address
    # extension), $domain (recipient domain), $local (entire recipient
    # localpart), $recipient_delimiter. Specify ${name?value} or
    # ${name:value} to expand value only when $name does (does not) exist.
    # luser_relay works only for the default Postfix local delivery agent.
    # NOTE: if you use this feature for accounts not in the UNIX password
    # file, then you must specify "local_recipient_maps =" (i.e. empty) in
    # the main.cf file, otherwise the SMTP server will reject mail for
    # non-UNIX accounts with "User unknown in local recipient table".
    #luser_relay = [email protected]
    #luser_relay = [email protected]
    #luser_relay = admin+$local
    # JUNK MAIL CONTROLS
    # The controls listed here are only a very small subset. See the file
    # sample-smtpd.cf for an elaborate list of anti-UCE controls.
    # The header_checks parameter specifies an optional table with patterns
    # that each logical message header is matched against, including
    # headers that span multiple physical lines.
    # By default, these patterns also apply to MIME headers and to the
    # headers of attached messages. With older Postfix versions, MIME and
    # attached message headers were treated as body text.
    # For details, see the sample-filter.cf file.
    #header_checks = regexp:/etc/postfix/header_checks
    # FAST ETRN SERVICE
    # Postfix maintains per-destination logfiles with information about
    # deferred mail, so that mail can be flushed quickly with the SMTP
    # "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
    # By default, Postfix maintains deferred mail logfile information
    # only for destinations that Postfix is willing to relay to (as
    # specified in the relay_domains parameter). For other destinations,
    # Postfix attempts to deliver ALL queued mail after receiving the
    # SMTP "ETRN domain.tld" command, or after execution of "sendmail
    # -qRdomain.tld". This can be slow when a lot of mail is queued.
    # The fast_flush_domains parameter controls what destinations are
    # eligible for this "fast ETRN/sendmail -qR" service.
    #fast_flush_domains = $relay_domains
    #fast_flush_domains =
    # SHOW SOFTWARE VERSION OR NOT
    # The smtpd_banner parameter specifies the text that follows the 220
    # code in the SMTP server's greeting banner. Some people like to see
    # the mail version advertised. By default, Postfix shows no version.
    # You MUST specify $myhostname at the start of the text. That is an
    # RFC requirement. Postfix itself does not care.
    #smtpd_banner = $myhostname ESMTP $mail_name
    #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
    # PARALLEL DELIVERY TO THE SAME DESTINATION
    # How many parallel deliveries to the same user or domain? With local
    # delivery, it does not make sense to do massively parallel delivery
    # to the same user, because mailbox updates must happen sequentially,
    # and expensive pipelines in .forward files can cause disasters when
    # too many are run at the same time. With SMTP deliveries, 10
    # simultaneous connections to the same domain could be sufficient to
    # raise eyebrows.
    # Each message delivery transport has its XXX_destination_concurrency_limit
    # parameter. The default is $default_destination_concurrency_limit for
    # most delivery transports. For the local delivery agent the default is 2.
    #local_destination_concurrency_limit = 2
    #default_destination_concurrency_limit = 10
    # DEBUGGING CONTROL
    # The debug_peer_level parameter specifies the increment in verbose
    # logging level when an SMTP client or server host name or address
    # matches a pattern in the debug_peer_list parameter.
    debug_peer_level = 2
    # The debug_peer_list parameter specifies an optional list of domain
    # or network patterns, /file/name patterns or type:name tables. When
    # an SMTP client or server host name or address matches a pattern,
    # increase the verbose logging level by the amount specified in the
    # debug_peer_level parameter.
    #debug_peer_list = 127.0.0.1
    #debug_peer_list = some.domain
    # The debugger_command specifies the external command that is executed
    # when a Postfix daemon program is run with the -D option.
    # Use "command .. & sleep 5" so that the debugger can attach before
    # the process marches on. If you use an X-based debugger, be sure to
    # set up your XAUTHORITY environment variable before starting Postfix.
    debugger_command =
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    xxgdb $daemon_directory/$process_name $process_id & sleep 5
    # If you don't have X installed on the Postfix machine, try:
    # debugger_command =
    # PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
    # echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
    # >$config_directory/$process_name.$process_id.log & sleep 5
    # INSTALL-TIME CONFIGURATION INFORMATION
    # The following parameters are used when installing a new Postfix version.
    # sendmail_path: The full pathname of the Postfix sendmail command.
    # This is the Sendmail-compatible mail posting interface.
    sendmail_path = /usr/sbin/sendmail
    # newaliases_path: The full pathname of the Postfix newaliases command.
    # This is the Sendmail-compatible command to build alias databases.
    newaliases_path = /usr/bin/newaliases
    # mailq_path: The full pathname of the Postfix mailq command. This
    # is the Sendmail-compatible mail queue listing command.
    mailq_path = /usr/bin/mailq
    # setgid_group: The group for mail submission and queue management
    # commands. This must be a group name with a numerical group ID that
    # is not shared with other accounts, not even with the Postfix account.
    setgid_group = postdrop
    # manpage_directory: The location of the Postfix on-line manual pages.
    manpage_directory = /usr/share/man
    # sample_directory: The location of the Postfix sample configuration files.
    sample_directory = /usr/share/doc/postfix/examples
    # readme_directory: The location of the Postfix README files.
    readme_directory = /usr/share/doc/postfix
    # THE FOLLOWING DEFAULTS ARE SET BY APPLE
    # bind to localhost only
    inet_interfaces = all
    # turn off relaying for local subnet
    mynetworks_style = host
    # mydomain_fallback: optional domain to use if mydomain is not set and
    # myhostname is not fully qualified. It is ignored if neither are true.
    mydomain_fallback = localhost
    myhostname = jamestownpress.com
    mailbox_transport = cyrus
    enable_server_options = yes
    luser_relay =
    maps_rbl_domains = dun.dnsrbl.net
    message_size_limit = 0
    mydestination = $myhostname,localhost.$mydomain
    smtpd_use_tls = no
    smtpd_enforce_tls = no
    smtpd_tls_loglevel = 0
    smtpd_sasl_auth_enable = yes
    smtpd_use_pw_server = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,permit
    smtpd_pw_server_security_options = plain
    server_enabled = 1
    relayhost =
    smtpd_client_restrictions = permit_mynetworks reject_rbl_client dun.dnsrbl.net permit
    always_bcc =
    mynetworks = 127.0.0.1/32,192.168.0.0/16,192.168.1.98,192.168.1.3,192.168.1.13,192.168.1.5,1 92.168.1.22,192.168.1.18,192.168.1.41
    content_filter = smtp-amavis:[127.0.0.1]:10024
    so what do I need to change

  • File To Proxy : Handle the response from ECC to send mail without BPM

    Hi,
    Scenario: FILE To Proxy
    Requirement: We are receiving xml acknowledgement file from bank with IDoc number and status in SAP PI and the file is used to send the status number, message and and IDoc number to ECC. After request is received in ECC BAPI is executed to update the original status of outbound IDOC.
    There would be multiple records in file and PI will send all IDoc acknowledgement to ECC to update the IDoc status.
    Issue: Since PI send all records to ecc, if any single IDoc status update is failing in ECC how would it can be communicated to support.
    ECC can send success or error response in proxy but how we can use the same in PI to send mail to support. Or is there any better error handling we can go for in such scenario.
    Thanks,
    Vertika

    Hi everyone
    thanks for response.
    Interface 1: IDoc (ECC) to File (Bank) --> Done
    Interface 2: Acknowledgment File (Bank) to BAPI (ECC) where BAPI will update the status of IDoc sent in first interface.
    For Interface 2 : PI will receive file from Bank with multiple records i.e multiple IDoc numbers and their status. PI will invoke proxy to send the IDoc number and status number (eg 16) for all the records together. Now if BAPI fails to update status of any single IDoc in that file how support team will know that the particular record is failed. To handle this error ECC is saying they can send Error and Success back to PI. But the problem is how we can use that response in PI in the same interface to send emails to support team. Bank does not want any response back in this case. This is just to ensure proper error handling since this is bank related interface.
    Splitting the interface in two interfaces will definitely help. But is there some way which can be used in same interface and based on error response from ECC mail is triggered.
    If any one has better suggestion for such kind of error handling, please post the same.
    Thanks,
    Vertika

  • Sending mail to the user-id

    Hi Guys,
           I Have The Requirement Like ,I need To Send The Data As A Mail From the ABAP Program,and also i need to set the  sender address different from the login-id,how to set the sender address different from login-id..please help with the coding..
    <REMOVED BY MODERATOR>
    thanks&regards
    srinivasulu.j
    Edited by: Alvaro Tejada Galindo on Jan 24, 2008 9:32 AM

    hi
    good
    pls check this report.
    : Report  ZSAPTALK                                                   :
    : Author  SAPdev.co.uk                                               :
    : Description :                                                      :
    : Send mail message to SAP mail inbox.                               :
    :                     Please visit www.sapdev.co.uk for further info :
    REPORT ZSAPMAIL NO STANDARD PAGE HEADING.
    TABLES: DRAD,
            QINF,
            DRAW,
            SOUC,
            SOFD,
            DRAP.
    DATA: P_RETURN_CODE LIKE SY-SUBRC.
    data: d_username LIKE DRAP-PRNAM.
    mail declarations
    DATA : BEGIN OF NEW_OBJECT_ID.         " the newly created email object
            INCLUDE STRUCTURE SOODK.
    DATA : END OF NEW_OBJECT_ID.
    DATA : BEGIN OF FOLDER_ID.             " the folder id of the outbox
            INCLUDE STRUCTURE SOODK.
    DATA : END OF FOLDER_ID.
    DATA : BEGIN OF REC_TAB OCCURS 5.     " the table which will contain the
            INCLUDE STRUCTURE SOOS1.       " information on the destination
    DATA : END OF REC_TAB.
    DATA : BEGIN OF OBJECT_HD_CHANGE.      " the table which contains the
            INCLUDE STRUCTURE SOOD1.       " info for the object we will be
    DATA : END OF OBJECT_HD_CHANGE.        " creating
    DATA : OBJECT_TYPE LIKE SOOD-OBJTP.    " the type of object
    DATA : BEGIN OF OBJHEAD OCCURS 5.      " the header of the object
            INCLUDE STRUCTURE SOLI.
    DATA : END OF OBJHEAD.
    DATA : BEGIN OF OBJCONT OCCURS 0.      " the contents of the object
            INCLUDE STRUCTURE SOLI.        " i.e. the text etc
    DATA : END OF OBJCONT.
    DATA : BEGIN OF OBJPARA OCCURS 5.      " formatting options
            INCLUDE STRUCTURE SELC.
    DATA : END OF OBJPARA.
    DATA : BEGIN OF OBJPARB OCCURS 5.      " formatting options
            INCLUDE STRUCTURE SOOP1.
    DATA : END OF OBJPARB.
    DATA : BEGIN OF T_MAIL_TEXT OCCURS 0,  "Message table for messages to
            STRING(255),                   "user via mailbox
           END OF T_MAIL_TEXT.
    Parameter: p_uname like sy-uname.
    **START-OF-SELECTION
    START-OF-SELECTION.
        d_username = p_uname.
        PERFORM POPULATE_EMAIL_TEXT.
        PERFORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
        PERFORM CREATE_AND_SEND_MAIL_OBJECT.
          FORM POPULATE_EMAIL_TEXT                                      *
          Inserts text for email message                                *
    FORM POPULATE_EMAIL_TEXT.
      CLEAR T_MAIL_TEXT-STRING.            "puts a blank line in
      APPEND T_MAIL_TEXT.
      APPEND T_MAIL_TEXT.
    adds failed list  on to end of success list.
      T_MAIL_TEXT-STRING = 'Test email message line 1'.
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = 'Test email message line 1'.
      APPEND T_MAIL_TEXT.
      CLEAR T_MAIL_TEXT-STRING.            "puts a blank line in
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = 'Header1    Header2    Header3'.
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = '----
      APPEND T_MAIL_TEXT.
    ENDFORM.
    *&      Form  SETUP_TRX_&_RTX_MAILBOXES
      Ensure that the mailboxes of the sender (INTMGR) are set up OK
    FORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
    get the user no of the sender in order to add the mail to the
    user name's outbox for future reference
      SELECT SINGLE * FROM SOUC
               WHERE SAPNAM = SY-UNAME.    "SAP name of a SAPoffice user
      IF SY-SUBRC NE 0.
        "Error finding the SAPoffice user info for the user
        MESSAGE E064(ZR53) WITH SY-UNAME.
        P_RETURN_CODE = 1.
        EXIT.
      ENDIF.
    *Get the outbox No for the sender from the user No where the folder
                                           " type is an outbox
      SELECT * FROM SOFD WHERE OWNTP = SOUC-USRTP   "Owner type from ID
                           AND OWNYR = SOUC-USRYR   "Owner year from the ID
                           AND OWNNO = SOUC-USRNO   "Owner number from the I
                           AND FOLRG = 'O'."Output box
      ENDSELECT.
      IF SY-SUBRC NE 0.
        " Error getting folder information for the user
        MESSAGE E065(ZR53) WITH SY-UNAME.
        P_RETURN_CODE = 1.
        EXIT.
      ENDIF.
    ENDFORM.                               " SETUP_TRX_&_RTX_MAILBOXES
    *&      Form  CREATE_AND_SEND_MAIL_OBJECT
    FORM CREATE_AND_SEND_MAIL_OBJECT.
      FOLDER_ID-OBJTP = SOFD-FOLTP.        " the folder type ( usually FOL )
      FOLDER_ID-OBJYR = SOFD-FOLYR.        " the folder year ( usually 22 )
      FOLDER_ID-OBJNO = SOFD-FOLNO.        " the folder no.
      OBJECT_TYPE     = 'RAW'.             " the type of object being added
    build up the object information for creating the object
      OBJECT_HD_CHANGE-OBJLA  = SY-LANGU.  " the language of the email
      OBJECT_HD_CHANGE-OBJNAM = 'PS to DM Interface'. " the object name
    mail subject 'Mass Linking of QA, pass/fail'
      MOVE TEXT-002 TO OBJECT_HD_CHANGE-OBJDES.
      OBJECT_HD_CHANGE-DLDAT = SY-DATUM.   " the date of the email
      OBJECT_HD_CHANGE-DLTIM = SY-UZEIT.   " the time of the email
      OBJECT_HD_CHANGE-OBJPRI = '1'.       " the priority ( highest )
      OBJECT_HD_CHANGE-OBJSNS = 'F'.       " the object sensitivity
    F is functional, C - company sensitive
    object_hd_change-skips  = ' '.       " Skip first screen
    object_hd_change-acnam  = 'SM35'.    " Batch imput transaction
    object_hd_change-vmtyp  = 'T'.       " Transaction type
    add the text lines into the contents of the email
      CLEAR OBJCONT.
      REFRESH OBJCONT.
    free objcont.      " added this to delete the mail contents records
      LOOP AT T_MAIL_TEXT.
        OBJCONT-LINE = T_MAIL_TEXT-STRING.
        APPEND OBJCONT.
      ENDLOOP.
      CLEAR OBJCONT.
    build up the table of receivers for the email
      REC_TAB-RCDAT = SY-DATUM.            " the date to send the email
      REC_TAB-RCTIM = SY-UZEIT.            " the time to send the email
    the SAP username of the person who will receive the email
      REC_TAB-RECNAM = D_USERNAME.
    the user type of the person who will send the email ( USR )
      REC_TAB-SNDTP = SOUC-USRTP.
    the user year of the person who will send the email ( 22 )
      REC_TAB-SNDYR = SOUC-USRYR.
    the user number of the person who will send the email
      REC_TAB-SNDNO = SOUC-USRNO.
    the sap username of the person who will send the email
      REC_TAB-SNDNAM = SY-UNAME.
    get the user info for the receiver of the document
      SELECT SINGLE * FROM SOUC WHERE SAPNAM = D_USERNAME.
      IF SY-SUBRC NE 0.
        WRITE : / TEXT-001, D_USERNAME.    "usnam.
        EXIT.
      ENDIF.
    the user number of the person who will receive the email ( USR )
      REC_TAB-RECNO = SOUC-USRNO.
    the user type of the person who will receive the email ( USR )
      REC_TAB-RECTP = SOUC-USRTP.
    the user year of the person who will receive the email ( USR )
      REC_TAB-RECYR = SOUC-USRYR.
    the priority of the email ( highest )
      REC_TAB-SNDPRI = '1'.
    check for delivery on the email
      REC_TAB-DELIVER = 'X'.
    send express so recipient knows there is a problem
      REC_TAB-SNDEX = 'X'.
    check for a return receipt
      REC_TAB-READ = 'X'.
    the sap username of the person receiving the email
      REC_TAB-ADR_NAME = D_USERNAME.       "usnam.
    add this receiver to the internal table
      APPEND REC_TAB.
      CLEAR REC_TAB.
    call the function to create the object in the outbox of the sender
      CALL FUNCTION 'SO_OBJECT_INSERT'
           EXPORTING
                FOLDER_ID                  = FOLDER_ID
                OBJECT_HD_CHANGE           = OBJECT_HD_CHANGE
                OBJECT_TYPE                = OBJECT_TYPE
                OWNER                      = SY-UNAME
           IMPORTING
                OBJECT_ID                  = NEW_OBJECT_ID
           TABLES
                OBJCONT                    = OBJCONT
                OBJHEAD                    = OBJHEAD
                OBJPARA                    = OBJPARA
                OBJPARB                    = OBJPARB
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                DL_NAME_EXIST              = 4
                FOLDER_NOT_EXIST           = 5
                FOLDER_NO_AUTHORIZATION    = 6
                OBJECT_TYPE_NOT_EXIST      = 7
                OPERATION_NO_AUTHORIZATION = 8
                OWNER_NOT_EXIST            = 9
                PARAMETER_ERROR            = 10
                SUBSTITUTE_NOT_ACTIVE      = 11
                SUBSTITUTE_NOT_DEFINED     = 12
                SYSTEM_FAILURE             = 13
                X_ERROR                    = 14
                OTHERS                     = 15.
      IF SY-SUBRC NE 0.
        MESSAGE A063(ZR53) WITH SY-SUBRC.
        EXIT.
      ENDIF.
    call the function to send the already created email to the receivers
      CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                FOLDER_ID                  = FOLDER_ID
                OBJECT_ID                  = NEW_OBJECT_ID
                OUTBOX_FLAG                = 'X'
                OWNER                      = SY-UNAME
           TABLES
                RECEIVERS                  = REC_TAB
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                FOLDER_NOT_EXIST           = 4
                FOLDER_NO_AUTHORIZATION    = 5
                FORWARDER_NOT_EXIST        = 6
                NOTE_NOT_EXIST             = 7
                OBJECT_NOT_EXIST           = 8
                OBJECT_NOT_SENT            = 9
                OBJECT_NO_AUTHORIZATION    = 10
                OBJECT_TYPE_NOT_EXIST      = 11
                OPERATION_NO_AUTHORIZATION = 12
                OWNER_NOT_EXIST            = 13
                PARAMETER_ERROR            = 14
                SUBSTITUTE_NOT_ACTIVE      = 15
                SUBSTITUTE_NOT_DEFINED     = 16
                SYSTEM_FAILURE             = 17
                TOO_MUCH_RECEIVERS         = 18
                USER_NOT_EXIST             = 19
                X_ERROR                    = 20
                OTHERS                     = 21.
      IF SY-SUBRC EQ 0.
        MESSAGE I035(ZR53) WITH NEW_OBJECT_ID D_USERNAME. "usnam.
      ELSE.
        MESSAGE I036(ZR53) WITH D_USERNAME."      sy-subrc.
      ENDIF.
    ENDFORM.                               " CREATE_AND_SEND_MAIL_OBJECT
    thanks
    mrutyun^

  • Mail not received sent through SMTP Send Mail Task

    Hi,
    I have a SSIS package which will send mail notifications. This package is deployed on Integration Services Catalogues as Project deployment. This package having a list of notifications regarding the task status.The receiver end got few
    notifications but missed of the notifications. This issue is not frequent. Sometimes we are getting all notifications. Sotimes missing some notification. All these using SMTP tasks with same SMTP connection. 
    I checked the task status in Standard Reports for all Executions. The task status for all these notification tasks are Success.
    What are the possible reasons for this?
    Thanks and regards,
    Muhammed Shakeer
    Muhammed Shakeer

    Hi Muhammed,
    If the issue happens sometime only and all executions was run successfully, then the issue should be caused by the SMTP server. The SMTP server may refuse the connections.
    To verify the cause, please:
    Check SMTP server log
    Enable logging for the SMTP task. Check the log after execution
    To understand how to enable Logging, please see:
    http://technet.microsoft.com/en-us/library/ms181205(v=sql.110).aspx
    Thanks,
    Jinchun Chen

  • Sending mails

    Hi To all,
      i am implementing a application in Web dynpro using java, my application has two errors , which are :
    1. when i am sending mails to the gmail or yahoo,instead of my local intranet excahnge server it is not sending the mails and giving errors as the email address is not valid.
    2. in every single case in which i am able to send mails to the local intranet excange server. after successful execution of the application i am getting       java.lang.IllegalStateException.
          So can u please help me.....
                 With Regrards
                        Kapil Avasthi

    Hi,
    > . when i am sending mails to the gmail or
    > yahoo,instead of my local intranet excahnge server it
    > is not sending the mails and giving errors as the
    > email address is not valid.
    -Check whether SMTP host and port are given correctly in your program. Check from and To addresses. Check whether yuo are able to send emails through this smtp server outside of this application(eg: through Outlook).
    > 2. in every single case in which i am able to send
    > mails to the local intranet excange server. after
    > successful execution of the application i am getting
    >       java.lang.IllegalStateException.
    - which version are you in? Did you recently upgrade your system? Are all the hotfixes applied?

  • Can't send mail - server properly configured and up

    I'm unable to send mail. Here's roughly the sequence of events that
    got me where I am:
    1) Connect through a firewall using VPN (the Cisco VPN client)
    over the wireless interface
    2) Compose a message, and click 'Send'
    3) The server is down, so I get the "Can't send e-mail" pop-up
    dialog
    4) Click 'Try later'
    5) Reconnect later while the server is up, and try to send
    6) Still see the "Can't send" pop-up
    Steps 3) and 4) happened a lot. In particular, turning on the
    wireless interface in order to connect over VPN causes Mail to try
    (and fail) to connect to the server.
    The server is up; I can reach it with "telnet <server> 25".
    Moreover, Mail's own "Connection Doctor" says it's able to connect
    to the server.
    This configuration worked until the sequence of events described above,
    and nothing on the server side has changed since.
    I've tried everything I can think of to get Mail back in a working state.
    Notably I've deleted the contents of "Outbox", quit Mail, and then restarted.
    I've also deleted and re-created the server configuration, without success.

    Two additional data points:
    1) I found a mail server I could use from outside the firewall.
    When I added that server, and closed the VPN session, Mail was
    (finally!) able to send. (But see below why you shouldn't rush
    to blame VPN).
    2) When there are two mail servers configured in preferences, the
    "Can't send mail" pop-up gives you the list of choices. If you
    select an alternate server from the list, the "Try selected
    server" button ought to try the new server. Instead, the
    pop-up reappears, still complaining about the old server.
    As for why I'm not prepared to blame (only) the VPN:
    * Note that the server is perfectly accessible; telnet works,
    and Mail's Connection Doctor says the server is up.
    * Point 2) above indicates some problem in Mail with the logic
    for retrying access to the failed server.

  • Sending mail function module problem in WAS.

    We have one custom function module Z_SEND_MAIL_ALL
    which is sending mails successfully with in the SAP 4.7 E system.
    Our function module Z_SEND_MAIL_ALL uses internally function modules like SO_OBJECT_SEND and SO_OBJECT_INSERT...
    Now we copied the same function module Z_SEND_MAIL_ALL into another system which is running in WAS server and
    when we run the function module it seems it is sending as attachment, however when I try to open the attachement...it gives dump. I clicked debugger.
    It shows  while CALL FUNCTION 'TABLE_DECOMPRESS' execution...
    it gives exception ( Error in compressed table ) as below  ...
    <b>raise COMPRESS_ERROR.</b>....
    I don't understand what is the problem ?
    Is it because of WAS is fully unicode compliance,  these function modules are not working . or is there any thing else I can do ....
    YOUR help is highly appreciated and respected.

    You have to declare the table using any specific type.
    The type table in the FM is generic so you can pass any type you need.
    For instance:
    TYPES: BEGIN OF ty_fields,
             fieldname LIKE dfies-fieldname,
           END OF ty_fields,
    TYPES: TY_T_GLU1              LIKE GLU1                     OCCURS 0,
           ty_t_fields            type ty_fields                occurs 0.
      DATA: lt_info_struct_fields TYPE ty_t_fields WITH HEADER LINE,
            lt_matching_fields    TYPE ty_t_fields WITH HEADER LINE.
        CALL FUNCTION 'AS_API_INFOSTRUC_FIND'
             EXPORTING
                  i_fieldcat         = ft_fieldcat-fieldcat
                  i_fields           = ft_fields_filled[]
             IMPORTING
                  e_infostruc        = lv_info_struct_name
                  e_all_fields       = lt_info_struct_fields[]
                  e_matching_fields  = lt_matching_fields[]
             EXCEPTIONS
                  no_infostruc_found = 1.

Maybe you are looking for

  • Mail "unexpectedly quits" after migration from snow leopard to new iMac running Mountain Lion

    Mail "unexpectedly quits" after migration from snow leopard time machine files to new iMac running Mountain Lion.  I can run connection doctor OK.  But the activity window is blank.   If you try to open message viewer window then mail program crashes

  • Issuing more then one item in free goods

    Hi SD gurus, My client is asking to issue more then two items as free goods along the main item. Example material A is sold along with material B and C as free goods.As far as my trails, I'm able to configure only one item as free goods but not the s

  • Email won't receive and keeps asking for password

    Ever since a combination of circumstances last week, my email is mostly, randomly not sending or receiving on my MBP.  We changed to AT&T Uverse; and I ran the most recent update of Safari.  Now, despite having the correct password entered, my email

  • CreateJavaSchema throws exception on active directory

    Hello, I'm attempting to follow the jndi tutorial using win2k active directory. I'am using a clean installation but every time i run the program I get the following error: Starting application C:\java\CreateJavaSchema.class [updating Active Directory

  • How do I get the bookmarks on the dropdown in addition to the menu items?

    I used to be able to click on the bookmark icon and have my bookmarks appear on the dropdown along with the menu choices. Now, all I get is the menu choices and I have to click Bookmark Toolbar and then Bookmarks to see the bookmarks. How do I get th