Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Distinct VIT: MIME Control: BodyAsFile

Products Downloads Sales Support About us
VIT



        
 

Summary

Send the body as file.

Description

The BodyAsFile property is used to indicate whether the body of the attachment or message is sent in the form of a file or as a buffer. This property is valid only if the UseProperty is set to True, otherwise the application must set the IsFile parameter. The UseProperty property should normally be set to False, and the IsFile parameter should be used instead of this property. See the UseProperty for information on when to use this property.

The application must set this property inside the OnSetBody event (and the deprecated OnBody event), during the create message process, only if the UseProperty is set to True. It should be set to 1 if a filename is passed to the MIME ActiveX control or else it should be set to 0.

This property can be changed only at run time inside the OnSetBody or OnBody events. There is no default value for this property.

Example

Sub Mime_OnSetBody (Buffer As String, Length As Integer, IsFile As Integer)
' send message body
If MsgBodyDone = False Then
Mime.SendData = Message
BodyAsFile = 0 ' message body
MsgBodyDone = True
Exit Sub
End If

' send attachment filename
If AttachDone = False And HeaderIndex <> 0 Then
Mime.SendData = HeaderInfo(Indx).FilePath

BodyAsFile = 1 ' attachment
AttachDone = True
Else
Mime.SendData = "" ' end of body or attachment
BodyAsFile = 0
End If
End Sub

                                                                                                                                                                                                                        
Purchase Visual Internet Toolkit
VIT-52-FL Distinct Visual Internet Run Time - Floating License
Version 5.2 for Windows 95/98/ME/NT/2000/XP/Vista
Licensing information   License Agreement
$100.00  ORDER
VIT-52-RT Distinct Visual Internet Client Run Time
Version 5.2 for Windows 95/98/ME/NT/2000/XP/Vista
Licensing information   License Agreement
$50.00  ORDER
VIT-52-S Distinct Visual Internet Toolkit with Subscription
Version 5.2 for Windows 95/98/ME/NT/2000/XP/Vista
Licensing information   License Agreement
$895.00  ORDER
VIT-52 Distinct Visual Internet Toolkit
Version 5.2 for Windows 95/98/ME/NT/2000/XP/Vista
Licensing information   License Agreement
$595.00  ORDER
VIT-S Subscription to Distinct Visual Internet Toolkit
Renewal
$400.00  ORDER






Browse FAQ

Related Products
Mail Objects

Recommended Add-On
Network Monitor,
Protocol Analyzer


Raves
"The night before I went on summer holiday we had to make some 'last minute' configuration changes to approx. 300 routers, a tedious job to do manually with telnet. We went along with MS Excel containing a list of IP-adresses to the routers, and the VIT telnet-component. One hour later the VBA-application (small is beautiful) was working, and after another hour all of our routers were updated with the new configuration. I just say a big "Thanks" to you all for a good sleep that night."
Eirik Brendholen, Ergo Integration AS

"We conducted a test session to compare the performance of similar products, and Distinct's product was better!" [more]
Dr. Shyam Sunder, Carnegie Mellon University

"Together with Distinct, we were able to offer our users an ideal soution to enabling them to connect to Yahoo! Pager, and to do so both quickly and reliably." [more]
Brian Park,
Producer of Yahoo! Pager, Yahoo! Inc.


  02/06/2012   Legal notices | PRIVACY Policy |