• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Attachments for EMail Message

 
Steve Dyke
Ranch Hand
Posts: 1678
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For some reason the folloing code produces an email containing two files with the same name( name of the last file in the array). One will have the appearance of a pdf file the other a generic icon appearance.

>
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have severe lack of coffee but here's a possible hint, Think about what's happening to p2......
 
Steve Dyke
Ranch Hand
Posts: 1678
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I finally figured that p2 has to be defined as new on each iteration. Works great. Thanks for the help.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No worries Steve, I was pretty sure you'd spot it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic