Skip to Content
avatar image
Former Member

How can send a email based on payload data

Dear Expert,

Have a synchronous scenario (SAP ECC)SOAP proxy to rest Services(Mobile ERP).

But Client want a mail from SAP PO(7.4) based on response payload data.

Please suggest me how can achieve this.

Thanks,

BR,

Pradeep Kumar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Jan 29, 2017 at 07:23 PM

    Hi Pradeep,

    you have to implement a BPM for that.

    Regards

    Helmut

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 30, 2017 at 06:05 AM

    Hi Helmut ,

    Thank you for reply.

    We are not using BPM for this scenario.

    But Java mail API is using for this scenario and i have configured everything according below mentioned blog.

    https://archive.sap.com/discussions/thread/3531640

    https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=90570965

    Whenever i am testing it is working fine and not getting any error log. But issue is that mail is not triggering to user's mail ID.

    So i have checked that code in NWDS and when i am executing SEND method there i found error log.

    Error Log :

    send failed, exception: com.sun.mail.smtp.SMTPSendFailedException: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

    BR,

    Pradeep Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 30, 2017 at 06:12 AM

    Hello Pradeep,

    check the below link

    http://stackoverflow.com/questions/8542616/550-access-denied-invalid-helo-name

    also check the user has required roles to hit the mail server.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 31, 2017 at 08:32 AM

    Hi Raghu,

    I have deployed mail jar file 1.4.7 in my code and now i am getting below error.

    Error:

    send failed, exception: javax.mail.MessagingException: Could not connect to SMTP host: ***, port: 25, response: 451

    send failed, exception: javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550-"JunkMail rejected - (*****) [IP]:51055
    550 is in an RBL, see https://www.spamhaus.org/query/ip/116.203.122.192"

    BR,

    Pradeep Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 23, 2017 at 09:10 AM

    Hi All,

    Thank You All.

    My issue was resolved now i am able to send mail based on response payload data.

    Issue : Mail.jar and Activation.jar file was missing in PI server.

    BR,

    Pradeep Kumar

    Add comment
    10|10000 characters needed characters exceeded