Send Attachments in mail

Hi All,
I’ve a requirement in my project to send emails to users with attachments from MWS.
I’m trying to use javaMail api for the same and i’m able to send emails when the files that needs to be attached are present in the server directory but some exception crops up when the file is present in a shared directory.
I’m using JCIFS to read the shared files.
Can anyone let me know how to go about this.

It would probably be helpful to see some logs. My hunch is that wit the shared directory (using jcifs) there are authentication problems. If you are using NTLM authentication to gain access to the files, then probably something is going wrong with the handshake.

It might be easier to use FTP instead of your current approach, but that is pure speculation not knowing the code or the exceptions.

Regards,
–mark