LedgerSMB::Mailer(3pm)

LedgerSMB::Mailer3pm

Mail output for ledgersmb

Methods

LedgerSMB::Mailer->new(...)

Create a new Mailer object. If any arguments are passed in, a message that uses them will be automatically prepared but not sent.

$mail->prepare_message(to => $to, from => $from, ...)

Prepares and encodes base message for sending or adding attachments.

Arguments

to, from, cc, bcc

Address fields for the email.

subject

The subject for the email.

message

The message body for the email.

contenttype

The conttent type for the body of the message, not for any attachments.

notify

Sets the Disposition-Notification-To header (read receipt request) for the message. This header will only be added if a from address is set.

$mail->attach(data => $data, file => $file, filename => $name, strip => $strip)

Add an attachment to the prepared message. If $data is specified, use the value of that variable as the attachment value, otherwise attach the file given by $file. If both a file and data are given, the data is attached. filename must be given and is used to name the attachment.

$strip is an optional string to remove from the filename send with the attachment.

$mail->send

Sends a prepared message using the method configured in ledgersmb.conf.

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

From ledgersmb 1.3.40-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.