Sending CSV as an attachment to email
648790Jun 19 2009 — edited Jun 30 2009Hi All,
We have a requirement to read the data from the Database and convert it into CSV using File adapter writting it to some location and then we have to send the converted CSV as an attachment to an user.
As i am able to retrieve data and then convert it to CSV and able to write to some location but not able to send the CSV as an attchment to user as i have hardcored the filename in the bodypart[2] and using the variable used to write the CSV file as an contentBody in part[2] for sending email.
The user is getting mail with CSV as attachment but with no data.
Any help in this highly appreciated.
Regards,
Nagaraju .D