[rt-devel] Attachments

Alex Krohn alex at gossamer-threads.com
Wed Jun 6 18:04:34 EDT 2001


Hi,

Sorry, I should have sent this to the list as well:

> > What would such a piece of code look like :D
> 
> Unfortunately, I really don't have the time to write this code just now.
> I'm just a little overly hosed.  You wanna look at iterating over
> the Attachments in Transaction->Message.

This will do the trick:

{ 
  $Transaction->Attachments('text/plain')->First->Content ||
  $Transaction->Attachments('text/html')->First->Content  ||
  "No Viewable Message."
}

Cheers,

Alex




More information about the Rt-devel mailing list