Pleasse if somebody know how can I send one excel file via email from java. Because I have to generate one report in excel and them send it from a java web applicattion.
Q: How do I send a message with an attachment? A: A message with attachments is represented as a MIME multipart message where the first part is the main body of the message and the other parts are the attachments. There are numerous examples showing how to construct such a message in the demo programs included in the JavaMail download package. To attach a file use the attachFile method of MimeBodyPart.