Bit of a strange one, Text Email into HTML.

deicistdeicist Manchester, UK
edited March 2006 in Internet & Media
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.

Comments

  • MiracleManSMiracleManS Chambersburg, PA Icrontian
    edited March 2006
    Well, the only idea I have is to have the email forwarded to a default box, but include the intended destination, then parse that out of the email and add your link.

    I think it's odd that this thing only allows text-emails though...
  • deicistdeicist Manchester, UK
    edited March 2006
    Well, the only idea I have is to have the email forwarded to a default box, but include the intended destination, then parse that out of the email and add your link.

    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.
    I think it's odd that this thing only allows text-emails though...


    Aye, it is a little odd. And not a little annoying :D
  • sharkydartsharkydart KY Icrontian
    edited March 2006
    i don't suppose people know how to copy text and paste it into a browser address/location bar? how will it not let you send html? does the email client a user has determine whether there is code in an email and thus display it properly, or does it look for some flag that says "hey, i'm an html email!"?

    ...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
  • deicistdeicist Manchester, UK
    edited March 2006
    sharkydart wrote:
    i don't suppose people know how to copy text and paste it into a browser address/location bar?

    pah, they can barely cope with turning the computer on :D
    how will it not let you send html? does the email client a user has determine whether there is code in an email and thus display it properly, or does it look for some flag that says "hey, i'm an html email!"?

    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.
    ...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

    Aye, I think I'm going to have to do something like that. No idea how to implement it though.
Sign In or Register to comment.