File to Mail using Mail Package
I have a requirement where we receive a csv file having mutiple columns, one of them being the email address.
I need to get this email address from the file and send this file as an attachment to the same email address.(Dynamic email address)
I have used the Mail xsd and have done graphical mapping to achieve this.
Now,the problem is,if I use Mail package for dynamic email address,I am not able to get the source file as an attachment because the payload here is a mail structure.
If I get source file as an attachment using PayloadSwapBean and MessageTransformBean,I cannot have dynamic email address.
Can anyone please suggest a solution to this?
Thanks in advance for your help.