on 09-02-2013 7:54 AM
Hi,
I created a new transaction in MII for sending emails.
I created the transaction variables for To address, Subject and for the body of the email. Configured the SMTP server details and the from address in
the transaction.
While I hardcode the values in the xacutequery of the transaction, the transaction is working fine and the email has been sent to the specified email address.
I am using MII 12.1.10 Build (71)
But while passing the values from the web page where other transactions are being executed before this send email transaction, the send email transaction is not working. I am getting the below error.
All your support/help in solving this issue are appreciated.
Unable to send email
[EXCEPTION]
com.sun.mail.smtp.SMTPSendFailedException: 503 5.5.2 Need Rcpt command.
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1515)
at com.sun.mail.smtp.SMTPTransport.data(SMTPTransport.java:1308)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
at com.sap.xmii.storage.connections.MailConnection.sendMail(MailConnection.java:206)
at com.sap.xmii.bls.executables.actions.mail.MailActions.send(MailActions.java:223)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.sap.xmii.bls.engine.ReflectiveAction.doExecute(ReflectiveAction.java:788)
at com.sap.xmii.bls.engine.BaseNode.executeNode(BaseNode.java:200)
at com.sap.xmii.bls.engine.BaseAction.execute(BaseAction.java:86)
at com.sap.xmii.bls.engine.runners.ProductionRunner.runAction(ProductionRunner.java:147)
at com.sap.xmii.bls.executables.sequences.Sequence.execute(Sequence.java:50)
at com.sap.xmii.bls.engine.runners.ProductionRunner.runSequence(ProductionRunner.java:126)
at com.sap.xmii.bls.executables.sequences.RootNode.execute(RootNode.java:39)
at com.sap.xmii.bls.engine.TransactionInstance.execute(TransactionInstance.java:1012)
at com.sap.xmii.bls.engine.TransactionInstance.run(TransactionInstance.java:687)
at com.sap.xmii.Illuminator.connectors.Xacute.XacuteRequestHandler.processQueryRequest(XacuteRequestHandler.java:346)
at com.sap.xmii.Illuminator.connectors.Xacute.XacuteRequestHandler.QueryRequest(XacuteRequestHandler.java:137)
at com.sap.xmii.Illuminator.connectors.Xacute.XacuteConnector.doProcessRequest(XacuteConnector.java:86)
at com.sap.xmii.Illuminator.connectors.AbstractConnector.processRequest(AbstractConnector.java:83)
at com.sap.xmii.Illuminator.server.QueryEngine.run(QueryEngine.java:41)
at com.sap.xmii.Illuminator.services.handlers.IlluminatorService.processRequest(IlluminatorService.java:74)
at com.sap.xmii.Illuminator.services.ServiceManager.run(ServiceManager.java:69)
at com.sap.xmii.servlet.Illuminator.service(Illuminator.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
at com.sap.xmii.system.SecurityFilter.doFilter(SecurityFilter.java:96)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
at com.sap.xsrf.filter.XSRFProtectorFilter.doFilter(XSRFProtectorFilter.java:62)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:469)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:299)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:399)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:388)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:84)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:244)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:327)
Hello Senthil,
Try debugging by the webpage. This error normally pops up when the mail API is not receiving valid email address of the recipients like "". Try if the mail address are correct by putting an alert just before triggering the transaction.
Also, you could if correct inputs are getting assigned to correct transaction input parameters. Make sure there is no case sensitive issues.
Incase, you still have the error, you could post a snippet of script.
Regards
Tufale Ashai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tufale Ashai,
Thanks for your response.
Yes- Please find below my findings.
Actually we are using MII 12.1.10 build(71) in our development environment.
In this environment, we are unable to perform more than one transaction one by one in sequence without refreshing the page.
Because of this issue, even through we are setting the values to the parameters and if we place an alert in the webpage, we are getting it inthe popups.
So i tried to write the property values in to a file in the transaction. In this process, i came to know that the values are not properly updated to the parameters. but while i comment all the previous transactions in that webpage and place this send email transaction in the list as first, then it is working perfectly.
It seems to be an issue with the environment.
Hence i raised a ticket to SAP also.
Kindly share your view on the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tufale Ashai,
Thanks for your response.
The issue with the send email through MII is resolved. Actually the issue is not with the Send email transaction. In the sequence of the transaction first action block is invoking an SAP ME webservice and the second action block is invoking the Email process.
The issue is actually with the invoke webservice action block.
Since i didnt enable the destination service in webservice, after completing the ME webservice the tranaction is getting completed and not allowing the email action block to continue hence it was not invoked properly.
After enabling the destination service, it was working fine.
I got the help on this from the SAP support team.
Thanks a lot for your kind support.
regards,
Senthilmanivenkatesh.B
Hi
it would be good to compare the 2 mime's You can activate to save the mime with report rsconn06 for outbound mail and than recreate both cases. If you have the mime's than attach them here.
Best regards
Jozsef
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
if you run the report rsconn06 than you can set the radio button to 'save the MIME for outbound mail'
Than you have to create sendrequest for both cases, hard coded values and when you pass the value.
After sending the mails the mime can be downloaded in tr sost. You can than compare the 2 mimes and see the differences where it is going bad.
Best regards
Jozsef
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.