Steve,
JAMES is just an SMTP server, and servlets are a way of routing and
processing those incoming messages. What you describe seems more
appropriate as a cron (unix) or at (win) job... I'm not sure how you
would use a servlet without request, either as an HTTP servlet or a Mail
Servlet. Turbine (so I've heard) has a scheduler, and Avalon (which
JAMES is built on) has a timer as well. To send out the message, you
can either access the JAMES mail server API, or almost as simply, just
use JavaSoft's javamail API to send an email... the client API is very
well done and tested.
Serge Knystautas
Loki Technologies
http://www.lokitech.com/
Steve Belt wrote:
>
> I was particularly intrigued by your advertising that JAMES supports
> "MailServlet" - I must admit that I am new to this, so I do not know if this
> is some well known API. I understand from your web page that documentation
> on this is under construction.
>
> I have a question (apoligies if I am trying to put a square peg in a round
> hole): I would like to write a servlet which periodically checks a database
> table for messages with a "send-time" value. When a message is ready to be
> send, I would like to use JAMES to send it. (Entries are added to the table
> by another application.)
>
> Messages I have read in your maillist-archive seem only to discuss servlets
> invoked by JAMES when an email is received. Can I reverse this so that my
> servlet presents messages to JAMES for transmission?
>
> If you have not already discerned from my post here, I am relatively new to
> the programing side of Apache projects, but I am eager to contribute. (For
> example, perhaps, Jetspeed's Calendar portal could use this to send
> reminders to participants before a meeting. I admitedly also have a personal
> use for this ability). Any hints on where I should look for ideas is
> appreciated.
>
> Steve B.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/>
Problems?: [EMAIL PROTECTED]