SendMailer Method

Applies To

Workbook Object.

Description

Sends the workbook using the PowerTalk mailer. This method is available only on the Apple Macintosh with the PowerTalk system extension installed and can only be used on a workbook with a mailer attached.

Syntax

object.SendMailer(fileFormat, priority)

object

Required. The Workbook object.

fileFormat

Optional. Specifies the file format to use for the workbook that is sent. See the FileFormat property for a list of valid types.

priority

Optional. Specifies the delivery priority of the message (one of xlNormal, xlHigh, or xlLow). The default value is xlNormal.

Remarks

Use the SendMail method on Microsoft Mail (MAPI or Microsoft Mail for the Apple Macintosh) email systems. Pass addressing information as parameters.

Use the SendMailer method on PowerTalk email systems on the Apple Macintosh. The Mailer object contains the addressing information for PowerTalk.

See Also

BCCRecipients Property, CCRecipients Property, Enclosures Property, FileFormat Property, Mailer Property, Received Property, SendDateTime Property, Sender Property, SendMail Method, Subject Property, ToRecipients Property.

Example

This example sets up the Mailer object for workbook one and then sends the workbook.


With Workbooks(1)
    .HasMailer = True
    With .Mailer
        .Subject = "Here is the workbook"
        .ToRecipients = Array("Jean")
        .CCRecipients = Array("Adam", "Bernard")
        .BCCRecipients = Array("Chris")
        .Enclosures = Array("TestFile")
    End With
    .SendMailer
End With