Hi Hung,

> My app tries to get a feedback from a user after having
> received a product. So I guess I can put an HTML form
> in an email and send it to the user.  The user selects one
> option in the email and sends it back to James.  Then a
> mailet will parse the message and analyze it as you suggest
> at the bottom of your email.  I will try this approach.  I have
> no idea how the message looks like yet.  I am going to
> use Mail.getMessage().getContent() to get the message and
> see how it goes.  I've tried this with plain text.
> Then the mailet will update a database appropriately for some
> tracking as you guess.
> Let me know if something goes wrong here.

No, great. This should do it. In order to get a clue of the message format,
you can also send the form data to your own address instead of an address
that gets redirected to your mailet. This way you can analyze the message
text and have better information on how to extract the form data by reading
it with your email client instead of by using
Mail.getMessage().getContent().

HTH,
Thomas


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to