This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
wood burning stoves
 
subject: Email problem when sending attachments
 
Similar Threads
problem with java mail attachment
email sending script
Sending mail through Exchange Server
File attachments using Java Mail API
Attach a file using java api