Bit of a strange one, Text Email into HTML.
deicist
Manchester, UK
Okay, this is a bit odd so I'll explain the background behind it first. At work we use an email / webfilter called surfcontrol which 'catches' emails in a filter when they trigger certain rules. An administrator (me) then goes in and releases emails if they should be allowed through. To request an email release Users have a support call system (Written by me in Ruby on rails ) which they can raise a ticket on, I then look at the tickets, log onto the email filter and release them. The problem is that users are dumb, and often forget to put required information on the ticket. The filter emails a notification to the user with 'rule triggered' and 'sender' information on there. They're then supposed to type that information into the ticket, but they often don't. To get round this I put a direct 'hook' into the support system, such that I can embed a link into an HTML document which when clicked on opens a ticket with the correct information in there automatically. I want to put this link in the notification email, the only problem is the filter can only send a notification email in plain text, so the link doesn't work. The only way round this I can see is to somehow catch the notification email and convert it to HTML, before forwarding it on...but I've no idea how to do this. Anyone got any ideas? FYI: The email filter is running on a Win2K box sat on the other side of an ISA server from our domain. The domain runs an Exchange 2003 box for all our email. The support system is running on an XP machine inside the domain.
0
Comments
I think it's odd that this thing only allows text-emails though...
Sorry, I was a bit ambiguous, that's exactly what I want to do, my question is how do I go about this? I'm fairly fluent in various languages but I've never had to 'get' emails before so I haven't the foggiest how I'd go about doing this.
Aye, it is a little odd. And not a little annoying
...would it be possible (if you absolutely need to remove all possible human f'ups) to write a program (C#?) that would periodically check the mailbox, looking for messages from the notification, grabbing the intended user's address, and sending the html email that way? i think this would be possible, but whether it's actually a practical solution to just put a clickable link in... :P sorry i don't have any slicker ideas
pah, they can barely cope with turning the computer on
I don't know, I was having a play with this earlier, writing html in text emails etc... I came to the conclusion that there's a tag in the headers or something that defines what type of email it is. And I have no access to the headers from the filter program.
Aye, I think I'm going to have to do something like that. No idea how to implement it though.