how to send an email with attachment in csv Format

Hi All,

can anyone of you please help me in how to send an email with attachment in csv Format.

I need to get the record from db and then i need to send it as an email attachment.can you please explain me in detail what steps are involved for completing this.

check IS service:
under WmPublic: pub.client:smtp
populate attachments properly. Check out the service documentation.