File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Email problem when sending attachments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Email problem when sending attachments" Watch "Email problem when sending attachments" New topic
Author

Email problem when sending attachments

Ezra Exposito
Ranch Hand

Joined: Apr 26, 2001
Posts: 34
This is the code I use to send emails:

Sometimes the text I use for the body causes the
contents of the attached file to be appended to the body instead of attached as a separate file.
I send the emails to an Outlook account and noticed that there is "<end>" appended to the body when it works correctly which I did not place there.
Any help would be greatly appreciated ...
Thanks,
Ezra
Ezra Exposito
Ranch Hand

Joined: Apr 26, 2001
Posts: 34
I figured out what the problem was. I was adding
multi-line text to the subject instead of the body. This caused it to do strange things.
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Email problem when sending attachments
 
Similar Threads
problem with java mail attachment
File attachments using Java Mail API
email sending script
Sending mail through Exchange Server
Attach a file using java api