9.2 Send method

Sends a fax to a specified destination.

9.2.1 Syntax

 object.Send(
    UserName As String, 
    To As String, 
    From As String, 
    PhoneNumber As String, 
    CoverText As String, 
    FileName As String, 
    LogoFileName As String, 
    AppTag As String)
 

9.2.2 Parameters

UserName
The user's login name.
To
The name of the recipient (max=31 characters).
From
The name of the sender (max=31 characters).
PhoneNumber
Destination phone number (max=46 characters).
CoverText
Text information on the cover sheet.
FileName
The name of the file to be transmitted.
LogoFileName
The name of the file that contains the logo you want to include in the fax (max=79 characters).
AppTag
The application tag (max=63 characters).

9.2.3 Return Values

Integer. Returns the message "Fax send successful" if the fax is successfully sent; otherwise, returns the message "Fax send failed" accompanied by an error code.

9.2.4 Example

This example sends the fax.bas file from NetWare Man to Lucky Dog at phone number 555-6323.

 Sub Main 
 Set FAX = CreateObject("UCX:CHEYENNE.FAX") 
 To = "Lucky Dog" 
 From = "NetWare Man" 
 Phone = "555-6323" 
 CoverText = "This is cover text" 
 Filename = "sys:nsn\user\fax.bas" 
 LogoFileName = "sys:nsn\user\fax.bas" 
 AppTag = "" 
 Fax.Send("Admin",To,From,Phone,CoverText,Filename,LogoFileName,AppTag) 
 if(Err.Number <> 0) 
 	print “Fax send failed “&Err.Description 
 else 
 	print “Fax send successful” 
 End If 
 End Sub