[Cover] [Previous Section] [Next Section] [Index]

Current chapter: Perl Fax Utilities: Fax Class
Section 54 out of 79 total sections , Section 3 out of 3 sections in this chapter


Methods

The Fax class provides the following methods.



new()


Description

Creates a new Fax. Calling this method is a prerequisite for calling any other method of this class.


Synopsis


Arguments

Argument  Meaning  
$faxNumber  

(string) Fax number of recipient.  

$faxContent  

(string) Content of the facsimile. 

$contentType  

(string) MIME content type of the facsimile.  


Returns

Value  Meaning  
$self  

Returns a reference to the Fax object on success. 


Example



addContent()


Description

Adds a document to the contents of the fax.


Synopsis


Arguments

Argument  Meaning  
$faxContent  

(string) The content to add. 

$contentType  

(string) MIME content type of the new content. 


Example



setRecipientName()


Description

Sets the name of the fax recipient.


Synopsis


Arguments

Argument  Meaning  
$name  

(string) The name of the recipient. 


Example



setRecipientFax()


Description

Sets the fax number of the recipient.


Synopsis


Arguments

Argument  Meaning  
$fax  

(string) The fax number of the recipient. 


Example



setRecipientPhone()


Description

Sets the phone number of the recipient.


Synopsis


Arguments

Argument  Meaning  
$phone  

(string) The phone number of the recipient. 


Example



setSenderName()


Description

Sets the name of the sender.


Synopsis


Arguments

Argument  Meaning  
$name  

(string) The name of the sender. 


Example



setSenderFax()


Description

Sets the fax number of the sender.


Synopsis


Arguments

Argument  Meaning  
$fax  

(string) The fax number of the sender.  


Example



setSenderPhone()


Description

Sets the phone number of the sender.


Synopsis


Arguments

Argument  Meaning  
$phone  

(string) The phone number of the sender. 


Example



setComment()


Description

Sets the comment on the cover page.


Synopsis


Arguments

Argument  Meaning  
$comment  

(string) The comment. 


Example



enableCoverPage()


Description

Specifies whether a cover page is attached to the fax.


Synopsis


Arguments

Argument  Meaning  
$addCover  

(boolean) Include cover page (or not). 


Example



asString()


Description

Converts the multipart message to a string for printing.


Synopsis


Returns

Value  Meaning  
$content  

The entire fax message as a single scalar string.  


Example


Caveats

On non-Unix systems, call "binmode" on a file descriptor before writing this string out to it.


[Cover] [Previous Section] [Next Section] [Index]

Current chapter: Perl Fax Utilities: Fax Class
Section 54 out of 79 total sections , Section 3 out of 3 sections in this chapter


Copyright © 1999, Unwired Planet, Inc. All rights reserved.