Page 1 of 1

Looking for advice: Email handling

Posted: Fri Jul 17, 2009 12:42 pm
by rasj
I am working on a website for a fire department. One of the things I wanted to implement is a "real time" call log that shows the calls that the station is running. When the station gets a call, an email is sent to all members of that department. That email included the type of call, the sddress, and the comments of the call. What I had planned to do is basically forward that email to the website and have the website post the email in sort of a blog type post. The problem is that I only want to send the first 40 (or so)characters on the body of the email. The rest I want to strip out. This is so we don't post peoples addresses and information about any medical calls that the station runs. The first 40 (or so) characters in the body of the email is the type of call.

Example:
The original email is:
LCFD - CF/09580 TYP: FIRE ALARM.......... AD: 1111 SOME KNOWN RD: CMT1: <<< FIRE ALARM >>> CMT2: GEN FIRE A ALRM//NO FURTHER AVAIL TIME: 14:30

What I want to post is:
LCFD - CF/09580 TYP: FIRE ALARM..........

Right now, I am forwarding the email from dispatch to a set up address, and that email address is forwarding to the website. Somewhere in there, I want to strip out the details in the body. Is there any way to handle this with PHP, or any other kind of software that I can buy/download? I am not a programmer, so I'm looking for something that I don't have to write myself. :oops:

If you guys know of a direction to point me in, I sure would appreciate it.

Re: Looking for advice: Email handling

Posted: Mon Aug 31, 2009 12:53 am
by Benjamin
:arrow: Moved to PHP - Code