Forums Register Login

Multiple Attachments for EMail Message

+Pie Number of slices to send: Send
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.

>
+Pie Number of slices to send: Send
I have severe lack of coffee but here's a possible hint, Think about what's happening to p2......
+Pie Number of slices to send: Send
Thanks, I finally figured that p2 has to be defined as new on each iteration. Works great. Thanks for the help.
+Pie Number of slices to send: Send
No worries Steve, I was pretty sure you'd spot it
look! it's a bird! it's a plane! It's .... a teeny tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 797 times.
Similar Threads
setting content in email with attachment JavaMail
problem with java mail attachment
Javamail: Problem sending attachments
How to send email with no attachment?
How to attach a TextFile as a File?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:32:56.