Skip to Content
avatar image
Former Member

How to send email with body and attachment

Hi Experts!

Happy New Year!

My requirement is when ever the file leaves from PI I have to send emails to particular users.

Inputs: Based on the country code we need to send email to recipient. Mail should contain body ( as

BofA Transmission OUTBOUND-Informational Message: Wed Dec 30 19:00:25 PST 2015

Preparing to send attached ePayables File to Bank of America.) and attachment.

Country Code and attachment will be coming to PI through proxy from ECC.

Please suggest me how to do this. As per my knowledge we can go with UDF. Please send me the code for this requirement.

Appreciate your quick reply.

Awaiting for your Kind Response.

Thanks,

Gayathri.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 07, 2016 at 02:59 PM

    Hello Gayathri,

    can you refer the below links

    Sending an email from UDF and including an atta... | SCN

    Add comment
    10|10000 characters needed characters exceeded

    • Gayathri,

      As Harresh mentioned you can try in ECC.

      If its for sure in PI means create 2 mappings one for sending message to File and other for this mail,Use the UDF to convert to XLS and othe date transformation logics.

  • Jan 07, 2016 at 03:06 PM

    >>Country Code and attachment will be coming to PI through proxy from ECC.


    If the attachment  is coming from Proxy, i don't think you need to do something using UDF.

    All you need to do is enable "keep attachments" in the receiver email channel.


    Assign the recipient email ID based on the country code logic during the mapping and same goes with Body.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Hareesh Gampa

      Yes Hareesh. I checked with them. the thing is we have to sent payment file as xml. but when it comes to email notification it should be in .xls.

      And one more thing we have encryption also in middle ( forgot to add this).

      We need to send the mail with (mentioned above ) body text and attachment (as .xls) to particular recipients based on country code.

      Thanks.