No, the file can be anywhere, in any directory. You just have to specify the 
correct path to the file when you attach it. Nothing to do with the SMTP 
configuration.

PC2 

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On 
Behalf Of Grizzly M
Sent: August 29, 2005 12:44
To: java400-l@xxxxxxxxxxxx
Subject: Javamail can't find attachment

I'm using JavaMail to send attachments, but I keep getting an error returned 
stating that file could not be found. The file I'm trying to attach resides in 
the root director. I've tried sending the email with the following in the 
attachment /file.csv and file.csv. Neither of the file are being found. Should 
the file reside somewhere else other than in the root directory when trying to 
attach it to an email? 

Do I need to change the SMTP server configuration on the AS/400 in order to use 
Javamail? 


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.