Looking for advice: Email handling

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rasj
Forum Newbie
Posts: 1
Joined: Fri Jul 17, 2009 12:31 pm

Looking for advice: Email handling

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Looking for advice: Email handling

Post by Benjamin »

:arrow: Moved to PHP - Code


Last bumped by rasj on Mon Aug 31, 2009 12:53 am.
Post Reply