• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Update Fields via email response

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a web application running on JBoss.

When an entity is created in the system, the system sends out an email to the approver.

Currently, the approver has to login to the system and approve/reject it.

Is it possible that the approver replies to the email with words "approve" or "reject" and system changes the status of this entity?

Any pointers will be highly appreciated.

Thanks..
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure. Just send the email from an existing email account. The replies go into this account, after which you can read them through JavaMail. You can then investigate the emails subject and body and do whatever you need to based on their contents.
 
rahull agarwal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Spoor wrote:Sure. Just send the email from an existing email account. The replies go into this account, after which you can read them through JavaMail. You can then investigate the emails subject and body and do whatever you need to based on their contents.



Thanks so much.

Will you be able to elaborate this?
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Elaborate? What part of it did you not understand?
 
rahull agarwal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:Elaborate? What part of it did you not understand?



Say my application is www.myApplication12378.com

It sends an email from support@myApplication12378.com

User replies to this email.

How will JavaMail know that email was sent? The mail will go out to SMTP server. right?
 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

rahull agarwal wrote:

Paul Clapham wrote:Elaborate? What part of it did you not understand?



Say my application is www.myApplication12378.com

It sends an email from support@myApplication12378.com

User replies to this email.

How will JavaMail know that email was sent? The mail will go out to SMTP server. right?



The user's reply comes into your e-mail server. Not your SMTP server of course, because SMTP is for sending e-mail. But it will come into your e-mail server, whatever it is. Then you can use JavaMail to search your e-mail server via IMAP or POP3, whichever it supports.
 
rahull agarwal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:

rahull agarwal wrote:

Paul Clapham wrote:Elaborate? What part of it did you not understand?



Say my application is www.myApplication12378.com

It sends an email from support@myApplication12378.com

User replies to this email.

How will JavaMail know that email was sent? The mail will go out to SMTP server. right?



The user's reply comes into your e-mail server. Not your SMTP server of course, because SMTP is for sending e-mail. But it will come into your e-mail server, whatever it is. Then you can use JavaMail to search your e-mail server via IMAP or POP3, whichever it supports.



You all have helped me a lot. let me research further.

But a quick note.. So, Javamail can actually go into exchange server and search/read emails? Really?

thanks so much.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you think JavaMail does?
 
rahull agarwal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:What do you think JavaMail does?



I should rather go and research myself.. It looks like I am looking for "spoon feeding" here :-)

I will get back with any questions if I have.

Thanks everyone
 
rahull agarwal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It all makes sense now.. I looked into JavaMail API and it all seems to easy and smooth now..

Thanks everyone. I am marking this post as resolved.
 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great! Just one suggestion: the JavaMail download includes a directory of sample programs. I recommend you have a look at those, and then when you are ready to start coding, use them as a basis for your own code. There's (all right, TWO suggestions) also a JavaMail FAQ which you should be able to google up pretty quickly. Lots of useful information there.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic