aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Email with multiple selected attachments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Email with multiple selected attachments" Watch "Email with multiple selected attachments" New topic
Author

Email with multiple selected attachments

Amel MaGdo
Greenhorn

Joined: Apr 19, 2013
Posts: 4
Hello It’s my first Time posting here nice forum I have a problem (I use a Swing) ,I want Multiple Attachments I tried with this code But it makes "null" as first Absolute path how can I resolve this problem and thanks
This is the source code :

Amel MaGdo
Greenhorn

Joined: Apr 19, 2013
Posts: 4
Please HELP!! :p
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I'm not clear on what your problem actually is, since I can't quite understand your description.

However... the code at lines 11 to 13 will never be executed. Perhaps you thought they would be executed when the variable i was zero? That isn't the test you're actually using.
Amel MaGdo
Greenhorn

Joined: Apr 19, 2013
Posts: 4
In fact I use a JApplet Form I have to select ,from a button, mutiple documents all the exemples witch I found in the net are with a One selected file !
So Itried with this one :
But It returns a null as first absolute path ! and thanks



[Thumbnail for E.PNG]

Amel MaGdo
Greenhorn

Joined: Apr 19, 2013
Posts: 4
And I have to link it with the button witch send the email somthing Like JavaMail !!Something Like that, the same spirit!
I all ready send a mail with attachment :a One attachment
The button "attach":
and I called it the button "send" like this :





but now I want it with multiple attachments you see ^^ !
And excuse me for the faults I've made in writing ^^ I'm not so quite good in english !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Email with multiple selected attachments