Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Email with multiple selected attachments

 
Amel MaGdo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please HELP!! :p
 
Paul Clapham
Sheriff
Posts: 21126
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
E.PNG
[Thumbnail for E.PNG]
the error
 
Amel MaGdo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic