Meta::Info::MailMessage - an email message encapsulation.


Meta documentation  | view source Contained in the Meta distribution.

Index


NAME

Top

Meta::Info::MailMessage - an email message encapsulation.

COPYRIGHT

Top

LICENSE

Top

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

Top

	MANIFEST: MailMessage.pm
	PROJECT: meta
	VERSION: 0.15

SYNOPSIS

Top

	package foo;
	use Meta::Info::MailMessage qw();
	my($message)=Meta::Info::MailMessage->new();
	$message->set_subject("Microsoft paradigm shift into the hamburger business");
	$message->set_recipients(["billg@microsoft.com"]);
	$message->set_text("Dear Sir! I wish to complain about the bad quality of chips with your hamburger");
	$message->set_from("john@doe.org");
	my($result)=$message->send();
	if($result) {
		print "Message sent\n";
	}

DESCRIPTION

Top

This is an object which encapsulates an email message. It has the subject, text, recipients etc... What is this good for ? object oriented encapsulation. This object can, ofcourse, send itself using the Mail::Sendmail module.

FUNCTIONS

Top

	BEGIN()
	init($)
	send($)
	TEST($)

FUNCTION DOCUMENTATION

Top

BEGIN()

This method sets up accessor methods for the attributes of this class. The attributes are: 0. "subject" - subject of the message. 1. "text" - text of the message. 2. "from" - for field for the message. 3. "recipients" - recipient list for the message. 4. "error" - error message string (retrieve in case of error).

init($)

Internal method which does instance initialization.

send($)

This method will send the message. The method returns the result of the send.

TEST($)

Test suite for this module. Currently it creates a message and sends it. The information about the recipent is taken from the Test module.

This test currently creates a short message and sends it to the consenting to be abused user.

SUPER CLASSES

Top

None.

BUGS

Top

None.

AUTHOR

Top

	Name: Mark Veltzer
	Email: mailto:veltzer@cpan.org
	WWW: http://www.veltzer.org
	CPAN id: VELTZER

HISTORY

Top

	0.00 MV perl packaging again
	0.01 MV more Perl packaging
	0.02 MV PDMT
	0.03 MV md5 project
	0.04 MV database
	0.05 MV perl module versions in files
	0.06 MV movies and small fixes
	0.07 MV more Class method generation
	0.08 MV thumbnail user interface
	0.09 MV more thumbnail issues
	0.10 MV website construction
	0.11 MV web site development
	0.12 MV web site automation
	0.13 MV SEE ALSO section fix
	0.14 MV finish papers
	0.15 MV md5 issues

SEE ALSO

Top

Mail::Sendmail(3), Meta::Baseline::Test(3), Meta::Class::MethodMaker(3), Meta::Ds::Array(3), Meta::Utils::Utils(3), strict(3)

TODO

Top

-add more capabilities here. (attachments and signatures for instance). Also add fields from which email program this was send (X-Mailer or some tags).

-do the test stuff.


Meta documentation  | view source Contained in the Meta distribution.