NAME

BW::Email - Support for email messages

SYNOPSIS

  use BW::Email;
  my $errstr;

  my $email = BW::Email->new();
  error($errstr) if (($errstr = $db->error));

METHODS

new

Crate a new bw::Email object.

init

Initializations called by new().

version

Return the version string.

error

Return the latest error condition.

validate_email ( email )

Returns SUCCESS if email is a valid email address. Otherwise returns FAILURE.

smtpdate

Return a date formatted for SMTP.

header ( name, value )

Create a new header.

headers

Alias for header().

email_from

Set and/or return the From: email address.

email_from_name

Set and/or return the From: name.

email_from_line

Return the From: header value.

email_subject

Set and/or return the Subject.

date

Returns the SMTP date.

email_body

Set and/or return the body of the email message.

email_to

Set and/or return the To: email address.

email_to_name

Set and/or return the To: name.

to_line

Return the value of the To: header.

return_path

Set and/or return the return-path (envelope address).

message

Return the fully-assembled email message.

received

Assemble the Received: header. (Internal only).

rc_line

Used internally for the SMTP transaction.

rc

Used internally for the SMTP transaction.

make_smtp_socket

Used internally for the SMTP transaction.

smtp_lineout

Used internally for the SMTP transaction.

smtp_transaction

Used internally for the SMTP transaction.

send

Send the message.

AUTHOR

Written by Bill Weinman <http://bw.org/>.

COPYRIGHT

Copyright (c) 1995-2010 The BearHeart Group, LLC

HISTORY

    2010-02-02 bw 1.0.3 -- first CPAN version - some cleanup and documenting
    2008-01-28 bw       -- normalized from bwEmail