On Thu, Jun 11, 2009 at 5:31 PM, Stefano Bagnara<[email protected]> wrote: > I'm not sure how MIME4J and SMTP transport are related. > SMTP and MIME spec have not "interfaces" between them and for SMTP a > mime message is simply a stream.
You are right but AFAIK there is no simple way to send a Mime4j message. You cannot use the Java Mail API because it expects a MimeMessage. Commons Net does not look very attractive.. I don't know of other alternatives. > An SMTP client should simply have a way to offer an outputstream to the > mime library or ask for an inputstream from the mime library: do I miss > any other integration point? No, except a higher level API could automatically extract sender and recipient addresses from the message, for example. Do you know of a solid low-level API that offers an output stream? That would be ideal. It should offer authentication and TLS, otherwise I have to write that stuff myself. Markus > Stefano > > Markus Wiederkehr ha scritto: >> I've written a class SmtpTransport that can be used to send a Mime4j >> message to an SMTP server. >> >> Currently it is very simple. Meaning it is not yet capable of >> authentication or TLS or other extensions. >> >> Would it be worth to include this code in Mime4j? >> >> Cheers, >> Markus >> >> PS: Testing is a bit of a PITA with sockets and all.. Robert, could >> MPT help with that? I haven't looked into it yet..
