It's not a secret anymore!
The moose likes Beginning Java and the fly likes replying an email Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "replying an email" Watch "replying an email" New topic

replying an email

Allen Springers

Joined: Oct 23, 2007
Posts: 4
I was wondering if it is possible to write a program to reply to an email as soon as an email is received.

For example, I get a listed of emails from database and send out the emails with some information and ask the receivers not to reply as the email will not be received.

However, if people accidently send a reply. I want to send them an email with a message that they should call me.

Is it possible to accomplish this using java, shell script, or stored procedure? Or this is the email server configuration?

Any help in this will be greatly appreciated

Petrus Pelser
Ranch Hand

Joined: Feb 20, 2006
Posts: 132
You should be able to set up your mail server to forward mail sent to a specific address (the one they replied to) to another (maybe your) address.
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585

Take a look at the JavaMail API.


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
I agree. Here's the link:
subject: replying an email
It's not a secret anymore!