I have code that uses jMail to send email messages with attachments.
But after I move the files that need to be attached from a local directory to a file share I get a message that file cannot be found.
[10/6/16 23:18:50:646 CDT] 0000001d SystemOut O SendEmailMessageJMail: atFile: //sgai-fs02/qmsattachments$/QMSAttachments/Temp/NCR_Dispositioned_7514121.pdf
[10/6/16 23:18:50:731 CDT] 0000001d SystemOut O FAIWebApp: setSendEmailMessageJMailV6: 3: javax.mail.MessagingException: IOException while sending message;
nested exception is:
java.io.FileNotFoundException: /sgai-fs02/qmsattachments$/QMSAttachments/Temp/NCR_Dispositioned_7514121.pdf (A file or directory in the path name does not exist.)
Now what is strange this all works while running in localhost but not in the production app server.
Do I need to use some form of Smb?
But after I move the files that need to be attached from a local directory to a file share I get a message that file cannot be found.
[10/6/16 23:18:50:646 CDT] 0000001d SystemOut O SendEmailMessageJMail: atFile: //sgai-fs02/qmsattachments$/QMSAttachments/Temp/NCR_Dispositioned_7514121.pdf
[10/6/16 23:18:50:731 CDT] 0000001d SystemOut O FAIWebApp: setSendEmailMessageJMailV6: 3: javax.mail.MessagingException: IOException while sending message;
nested exception is:
java.io.FileNotFoundException: /sgai-fs02/qmsattachments$/QMSAttachments/Temp/NCR_Dispositioned_7514121.pdf (A file or directory in the path name does not exist.)
Now what is strange this all works while running in localhost but not in the production app server.
Do I need to use some form of Smb?