This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
 
subject: Email problem when sending attachments