[Rt-devel] &RT::Interface::Web::MakeMIMEEntity()

Jeff Albert jralbert at uvic.ca
Fri Feb 25 13:00:53 EST 2005


Hi Levon,
I'm not sure if it's the preferred method or not, but I was able to just use
the MIME::Tools module to create my MIME entity in a scrip:

	use MIME::Entity;

	my $entity = MIME::Entity->build(
		Subject => "subject"
		From => 'value',
        	Cc => 'value',
        	Data => 'value',
	);

Is this sufficient for what you want to do? If not, sorry for muddying the
waters.

Cheers,
Jeff Albert
Departmental Computing Support Team
University of Victoria
jralbert at uvic.ca

-----Original Message-----
From: rt-devel-bounces at lists.bestpractical.com
[mailto:rt-devel-bounces at lists.bestpractical.com] On Behalf Of Levon
Ghazaryan
Sent: Friday, February 25, 2005 8:35 AM
To: rt-devel at lists.bestpractical.com
Subject: [Rt-devel] &RT::Interface::Web::MakeMIMEEntity()

Hi list,
could someone explain what's special with the
RT::Interface::Web that causes some code like the
folowwing one to end up with:

    Undefined subroutine &RT::Interface::Web::MakeMIMEEntity called at
      /usr/local/share/request-tracker3/lib/RT/Foo/Bar.pm

package RT::Foo::Bar;
use strict;

sub Baz {
    my $self = shift;

    use RT::Interface::Web;

    my $MIMEObj = &RT::Interface::Web::MakeMIMEEntity(
        Subject             => 'value',
        From                => 'value',
        Cc                  => 'value',
        Body                => 'value',
    );
}

1;

best regards

levon ghazaryan
------------------
levon at mail.desy.de
_______________________________________________
Rt-devel mailing list
Rt-devel at lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel




More information about the Rt-devel mailing list