It seems like JAMES is spooling outgoing emails, I simply understood that by creating a transport inside a mailet, it would connect on port 25 to that particular email server i.e. mail.yahoo.com. Once I added a specific matcher to the "RemoteDelivery" mailet, JAMES sent the email to my yahoo mail server. But I guess JAMES processes all outgoing emails as well. Interesting. Sujit
-----Original Message----- From: Serge Knystautas [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 10:11 AM To: James Users List Subject: Re: sending smtp messages from a mailet Sujit Jagdev wrote: > We have been trying to send emails from within an email using the > javax.mail package. But, James keeps intercepting the message even > though it is destined for another mail server. > > Here is a code snippet. You could use this, or instead of the Transport, you could use MailetContext.sendMail. See the mailet API docs at http://james.apache.org/mailet/index.html. > The code works when I run it outside JAMES. So my question is how do I, > get JAMES to stop spooling any emails that I create and send from inside > a mailet. I don't quite understand... why do you want to stop spooling any emails, and what are you hoping to accomplish? -- Serge Knystautas Lokitech >> software . strategy . design >> http://www.lokitech.com p. 301.656.5501 e. [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
