cancel
Showing results for 
Search instead for 
Did you mean: 

Sending a email from custom Iflow in SAP CPI

Dear experts,

Is it possible to send emails from a dynamic user domain address?

Currently I have defined a gmail email address that is stored in the Security Material section. What I was expecting when the email is being send is to take the email provided in the mail attributes at the "From:" field. Unfortunately it takes the one defined in the credential name.

Is there any way to customize the email adapter so that I can send it from the mail attribute field"From" , and not from the mail inside the credential name.

Thanks in advance!

emailadapterscpi.png

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor

Hello Alexandru,

I have tried with customers SMTP server and it does take the From address from mail adapter only( not from Credentials ).For gmail this behavior is bit different i think you should follow below to get custom email address dedicated for sending your emails and then try to associate the same with SAP CPI mail connector.

https://www.lifewire.com/send-mail-from-a-custom-email-address-with-gmail-1172019

Regards,

Sriprasad Shivaram Bhat

Answers (2)

Answers (2)

jorgeh
Explorer
0 Kudos

Check email configuration server with the owners.

You can retrieve, using groovy script, email from secure parameter and then include like property in email parameter ( FROM).

Depending of email configuration server you are available to configure your own email or not. Sometimes authentication is done with one email and mail adapter send another, other is the same and fewer times is possible to include one free. Last option i have used for email notifications with one unknown and generic email. Usually admin doesn't allow to do that.

0 Kudos

Hi Alexandru,

Please find below the standard document for more details.

https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/f68d5e03fd574f509f89474f6a6...

Hope this helps,

thanks and regards,

Praveen T

0 Kudos

Thanks for taking the time Praveen, but this doesn't answer my question. I read the documentation and I was expecting for it to function as it is written there.

The problem was why even though I am providing a parameter in the FROM field, it is not taking it into account ,but instead it is taking the email address from the Credential Name.

Has anybody confronted with this issue before?