The code below I put together from old postings on sending emails with attachments. It works as it is but I am wondering whether I should be setting the subType with the method setSubType? I am not sure what setting the subtype does (and cannot a great deal of infomation on it that makes a great deal of sense). Perhaps someone can advise me on what it is and whether I should code it. Also, if it is recommended, how should it be specified? I don't know if its relevant but I plan to send pdf and Word attachments predominantly
I send a lot of PDF documents using JavaMail and I do not use that method. I don't know what it does either, but I suspect it refers to the second part of things like "text/html". And the API documentation was clearly written for people who don't need the documentation. At any rate I don't have any problems sending the PDFs.
Joined: Jan 11, 2006
Thanks Paul...wasn't sure if I was missing anything important. For anyone who is interested, I did find some useful information at the following links.