Kevin, As the old joke says, "if you want to get _there_ I wouldn't go from here sir"
> I want to be able to write some emails using something like: > > javax.mail.Session session = > javax.mail.Session.getInstance( props, null ); > Message msg = new MimeMessage( session ); > transport.send( msg ); Using James you wouldn't necessarily need to use JavaMail for sending (unless there are other pressures), just MimeMessage to create messages, check out jakarta-commons-sandbox-net, (.jar included in James/lib in current cvs) and jakarta-james/tests/EndToEnd.java (also only in cvs) This shows how an app can deliver mail to James for further processing, You can then write Mailets to process the mail make distribution lists, logging whatever. Or you could write a mailet, or a new service, which acts as a gateway between your app and James, accepting mail and inserting it into James spool (see fetchpop for example of how to wite a service to spool new messages). > 3. Messages to the 'cc' address dissapear. (I'm using file system > mailboxes > on my machine to begin with - would move to SQLServer 2000 later likely). > When I send the first message, I can see in the smtp log they are accepted > correctly for the 'to' and 'cc' addresses - and I can see the > files show up > in the users' directories. When I send the second message, the 'to' > addressee gets a second message in their directory, but the 'cc' user gets > the second message and their first one disappears. If I send 10 messages, > the 'to' would have ten messages, but the 'cc' would only have the 10th. > (I've done this.) I don't have this problem if I use our Notes server as > the smtp host. The smtp log says all the messages are received correctly. This issue may be because message ID's are being duplicated, but thats just a hunch, its not very clear where your app ends and where your use of James begins. > 4. When I send a message and immediately attempt to read it, I read the > messages back only about 75% of the time. When it doesn't work, I can see > the messages in the user's directoy. It's as if I try to read too fast and > miss them. How long should it take for the messages to be procssed and > available for reading? It can take a minute or two, or it can be very fast, James, in common with mail in general, makes no claims about delivery times. We're currently looking at beefing up performance of connection handlers, and in the next cycle will be looking at the spoolmanager, so expect to see some improvements. d. -- To unsubscribe, e-mail: <mailto:james-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>
