Name
new
Synopsis
$mailer= new Mail::Mailer [type,command]
Constructor. Creates a new Mailer object
representing the message to be sent. If the optional arguments
are specified, the value of
commanddepends on
type, which can be one of:
mailUses the Unix mail program.
commandis the path to mail. The module searches for mailx, Mail, and mail, in that order.sendmailUses the sendmail program.
commandis the path to sendmail.testUsed for debugging. Calls /bin/echo to display the data, but doesn’t actually send any mail.
commandis ignored, if specified.
If no arguments are specified, the Mailer object searches for executables in the above order and uses the first one found as the default mailer.