cancel
Showing results for 
Search instead for 
Did you mean: 

How can send a email based on payload data

former_member221434
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member221434
Participant
0 Kudos

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

former_member221434
Participant
0 Kudos

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

former_member186851
Active Contributor
0 Kudos

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.

former_member221434
Participant
0 Kudos

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

helmut_skolaut3
Active Participant
0 Kudos

Hi Pradeep,

you have to implement a BPM for that.

Regards

Helmut