% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::cust_msg - Object methods for cust_msg records
use FS::cust_msg;
$record = new FS::cust_msg \%hash;
$record = new FS::cust_msg { 'column' => 'value' };
$error = $record->insert;
$error = $record->check;
An FS::cust_msg object represents an email message generated by Freeside and sent to a customer (see FS::msg_template). FS::cust_msg inherits from FS::Record. The following fields are currently supported:
Creates a new
Adds this record to the database. If there is an error, returns the error and emits a warning; otherwise returns false.
Delete this record from the database. There's no reason to do this.
Replaces the OLD_RECORD with this one in the database. If there is an error, returns the error and emits a warning, otherwise returns false.
Checks all fields to make sure this is a valid example. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.
Returns the complete message as a MIME::Entity.
Returns a list of the MIME parts contained in the message, as MIME::Entity objects.