Retrieves or sets a value that indicates the list of message' attached files separated
by semicolon.
Type | Description | |||
String | A String expression that indicates the list of files attached to the message, separated by semicolon. |
Use the Attachment property to attach files to your application. To attach files to an email message you can set Attachment property, or you can set the argument Attachement of Send method. The following method shows two different ways how you can attach files to a Message object:
Private Sub Form_Load() Dim m As Message Set m = Runtime1.NewMessage If (0 = m.Send("myaccount@usermail.com", "sss@colam.com", "Test", "This is a test message", "c:\winnt\system32\setup.exe;c:\winnt\system32\setup.bin")) Then MsgBox "The message was succesfully delivered " End If End Sub
Private Sub Form_Load() Dim m As Message Set m = Runtime1.NewMessage m.Attachment = "c:\winnt\system32\setup.exe;c:\winnt\system32\setup.bin" If (0 = m.Send("myaccount@usermail.com", "sss@colam.com", "Test", "This is a test message")) Then MsgBox "The message was succesfully delivered " End If End Sub