METHODS

Constructors

$class->new( PAIRS )

A list of header fields (provided as key-value PAIRS) can be used to initialize the object, limited to the few provided as method: to, subject, cc, and bcc. For other header fields, use add().

Header fields

$obj->add( $fieldname, @values )

Add values to the list of defined values for the $fieldname.

$obj->bcc( @values )
$obj->cc( @values )
$obj->delete( $fieldname )
$obj->set( $fieldname, @values )

The @values will replace the old values for the $fieldname. Returned is the LIST of values after modification.

$obj->subject( @values )
$obj->to( @values )

Sending

$obj->open( %options )

The %options are used to initiate a mailer object via Mail::Mailer::new(). Then Mail::Mailer::open() is called with the knowledge collected in this Mail::Send object.

Be warned: this module implements raw smtp, which means that you have to escape lines which start with a dot, by adding one in front.