Description: | Adds a file attachment to the message |
Syntax: | object.AddAttachment(sFile) |
Parameters: | |
object | Required, the Message object |
sFile | The full path name of the file to be attached. |
Remarks: | This method adds the file attachment to the message prior to sending. |
Returns: | Returns True if the file was successfully added to the message, False otherwise. |
Example: |
Set session = CreateObject("OfficeTalk.Session")
Call session.Logon(login name, password)
Set message = session.NewMessage
if (message.AddAttachment( "c:\windows\256color.bmp")) Then
MsgBox "Successfully added recipient"
End If