February 14, 2006 at 11:22 am
Hi
I am developing an online IT HELPDESK and would like to add the function where USERS can email a certain email address and this email is then parsed into the relevant fields within a SQL database.
I am using Exchange 2000, Outlook 2003 and SQL 2000.
Could anyone offer any assistance or direct me in the right direction.
Many Thanks
Lee
February 15, 2006 at 4:10 am
Hi,
Have a look at the sp_processmail procedure in the master database. This examines an inbox and executes the SQL query sent in the email, returning the results as an attachment. I wouldn't use this procedure as it stands, too much risk of SQL Injection attacks, but you can use the techniques in it to scan and process the contents of an email.
I created a renamed copy of it in my own database, and parsed the @subject variable for instructions on what to do with the contents of the email. Then I set up a scheduled job running every five minutes to call the stored procedure
David
If it ain't broke, don't fix it...
February 15, 2006 at 7:38 am
I agree, this is not recommended. I'd rather have you use VBScript to read some Outlook mailbox on another machine and then do an insert into SQL Server.
February 15, 2006 at 7:44 am
That's the route I was thinking, just not sure where to start?!?!
Any ideas or pointers?
Lee
February 15, 2006 at 11:02 am
Instead of email why not just put the [enter problem] page on the website, since you said it is online. and have that page insert into the database.
it seems like that is what you want to do in the end anyway.
solution from mars:
you would then have an email auto sent from the database to the help desk administrator to alert him/her of a new problem
February 15, 2006 at 11:09 am
That's the main option which is available, but we also offer email and telephone call logging.
This is particular handy for our blackberry users.
Thanks
Lee
February 16, 2006 at 2:25 am
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply