aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Transport.send Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Transport.send" Watch "Transport.send" New topic
Author

Transport.send

Girish Bal
Ranch Hand

Joined: Jun 23, 2005
Posts: 54
Hi all,

I would like to understand what the javamail API's Transport.send method does. Does it convert MimeMessage object to .eml or .msg formats?

Please let me know.


Girish B
SCJA 1.0 (86%)
SCJP 1.4 (91%)
OCPJWCD (86%)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19794
    
  20

.eml and .msg are formats specific to email clients. These are only created when the email is received by the client.

Emails are actually just text "files" with a specific format. First comes the header, then the body parts and attachments (in an encrypted form, mostly base 64). You can google if you want to know the exact details. In most email clients, you can also choose to view the email source to see how it lokks like.

So all Transport.send does is turn the (Mime)Message object in text and send that to the email server.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Girish Bal
Ranch Hand

Joined: Jun 23, 2005
Posts: 54
Thank You!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transport.send