Simon Christian wrote:
>
> I'm wanting to be able to send out verification emails to users
> registering on a site, and then (ideally) have a servlet or other java
> app pick up the replies and update a database accordingly. Does anyone
> have any hints as to how to go about doing this, given that the machine
> is already running sendmail and a pop3/imap server.
>
> The only way that I can see currently is to have a cron'd java app log
> in as a mail client and parse any replies before deleting them, or doing
> the same from a time-managed servlet. I'd rather have something that
> could pick up the emails almsot instantaneously - any ideas?

If your only choice is to parse an email, then an application of some kind
(java, C, perl) is probably the better solution. The primary purpose of a
servlet is to provide a service in response to a request. That said, if you
really want to provide instantaneous processing of a reply from a verification,
then provide a URL in the email which causes the server to execute or call the
server-side processor (i.e., could be servlet, or cgi, or jsp, etc.). If you
know for sure that all user email clients can handle HTML encoded email, you can
put a form in the email with submit buttons that sends a request to your
servlet.

I recently subscribed to this list and the URL method is how Sun processed my
request. I sent in the subscribe message. The list server responded with me an
email which provided a URL. When I went to the URL in the message, a cgi process
handled the request.

Kevin Mukhar

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to