-
December 14th, 2005, 01:19 PM
#1
Need a little Help regarding a project
I am trying to make online forms for my company (forms like requistion e.t.c.). What i have in my mind is that the user log into the website complete the form and submit, on submit an email should be generated to the head of the concerned department. So far this phase is ok, but what i am keen to know is that when the Head of depart reply to that email received, it should have a field or area where remarks can be added by him.
Hence the head shouldn't bother going to the website to reply rather he/she should be able to do that via email generated.
Please tell me how this can be achieved ?
One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man!
-
December 14th, 2005, 02:03 PM
#2
Ummm...
He is replying to the email that he recieves in his inbox in whatever email prog he uses right?
This is just replying to an email. I don't understand the problem. It would be MORE complicated to reply via the web site.
\"Clouds are not spheres, mountains are not cones, coastlines are not circles, and bark is not smooth,
nor does lightning travel in a straight line.\" -Benoit Mandelbrot
-
December 14th, 2005, 02:12 PM
#3
Its not jus the simple reply, i want that reply or comments to be added to the database so that the it can also be seen on the website.
One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man!
-
December 14th, 2005, 02:36 PM
#4
Set the reply-to address to something like process@company.com.. You can use Perl (or something else you're comfortable with) to fetch the email from the company's mailserver, process the email and store the info in the database..
Oliver's Law:
Experience is something you don't get until just after you need it.
-
December 14th, 2005, 06:19 PM
#5
Hi
I agree with SirDice and would like to suggest procmail[1,2],
configured for the user "process"@company.com. I love it. For example,
you could configure it like
Code:
:0 HB
* ^Subject:.*WebForm # Assuming that "WebForm" is part of the header
{
#create a copy of the mail in process's home directory
:0 c
|cat >/home/process/webmail/some_filename
#start a script/perl program whatever
:0
|/home/process/webmail/process_webmail.sh
}
where I simply have assumed that process_webmail.sh is some
sort of script, which will perform some tasks on some_filename.
Be aware that this procedure allows the user of the webform
to insert data into the database (of course, this depends on
the head of the concerned departement). Take the usual
precautions.
Cheers.
[1] http://pegasus.rutgers.edu/~elflord/unix/procmail.html
[2] http://www.antionline.com/showthread...hreadid=237207
If the only tool you have is a hammer, you tend to see every problem as a nail.
(Abraham Maslow, Psychologist, 1908-70)
-
December 15th, 2005, 05:03 AM
#6
Thanks I will try to work on it.
One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|