Internet Protocol Class that encapsulates simplefied SMTP, HTTP, FTP, DNS resolution and RAS dialing. Relies on wwIPStuff.dll for various support functionality to access TCP/IP and WinInet functions.

Note:
wwIPStuff originally contained all of the methods supported in the wwHTTP class. wwHTTP now implements all of the HTTP functionality in the West Wind Internet Protocols, but wwIPStuff continues to contain the same methods as wwHTTP for backwards compatibility. However, from here on forward any updates to the HTTP class methods are only made in wwHTTP and eventually HTTP support may be completely removed from wwIPStuff. We highly recommend you change your classes used for HTTP access to wwHTTP.



Based on: Custom
Stored in: wwIPStuff.vcx


Inheritance


Relation
  wwIpStuff

Properties, Events and Methods

Member Description
AddHeaderThis method adds Extra Headers for the SMTP mail client.
o.AddHeader(lcHeader,lcValue)
Base64DecodeDecodes a Base64 string back into a readable string.
o.Base64Decode(lcInput)
Base64EncodeEncodes a string into Base64 format.
o.Base64Encode(lcInput)
decodedbfTakes a string encoded with EncodeDbf() and converts it back into a physical file. If the string contains a DBF with a memo the memo is also restored.
o.decodedbf(lcBuffer, lcDBF)
encodedbfTakes a single file (DBF or otherwise) or a DBF/MEMO pair and encodes it into a string. String includes a header for verification and information about the file. Use DecodeDbf() to restore the string to a file.
o.encodedbf(lcDBF, llHasMemo, lcEncodedName)
encodefileTakes a single file (DBF or otherwise) or a DBF/MEMO pair and encodes it into a string. String includes a header for verification and information about the file. Use DecodeDbf() to restore the string to a file.
o.encodefile(lcFileName)
getdomainfromipRetrieves the Domain Name from an IP Address.
o.getdomainfromip(lcIPAddress)
getipfromdomainRetrieves the IP address from a Domain name by resolving DNS.
o.getipfromdomain(lcDomain)
getlastinterneterrorReturns the last WinInet Error Message. Applies only to FTP functions. Call this method on HTTP and FTP errors that return 'generic' error codes.
o.getlastinterneterror(lnError)
getsystemerrormsgReturns a WinInet or Win32 API error message.
o.getsystemerrormsg(lnErrorNo, llAPI)
InternetDialBrings up the Windows Dialer dialog that prompts for connection info and dials the connection requested.
o.InternetDial(llUnattended,lcConnection)
InternetHangupHangs up a connection previously established with InternetDial.
o.InternetHangup(lnHandle)
rashangupHangs up a previously dialed RAS connection. Requires handle!
o.rashangup()
sendmailThis method allows sending of SMTP email which is the most common Email interface for the Internet. This method requires that you have access to an SMTP mail server.
o.sendmail()
sendmailasyncSame as SendMail() but operation runs on a separate thread asynchronously and immediately returns to the calling code. No error code is returned. Please see SendMail for details.
o.sendmailasync()
SendMapiMailThis method allows sending mail using the Microsoft MAPI protocols using the current MAPI profile. It uses the same properties as the SendMail method minus the sender address info.
o.SendMapiMail()
unzipfilesSimple file UnZipping interface to the DynaZip Unzip DLL (not provided). This method call talks directly to the DLL bypassing the ActiveX Control.
o.unzipfiles(lcZipFile, lcDestination, lcFileSpec)
wininetsettimeoutAllows setting the timeout period for each type of connection and transfer operation. Specify in seconds. (WinInet does not always respect this setting correctly)
o.wininetsettimeout(dwTimeoutSecs)
zipfilesSimple file Zipping interface to the DynaZip Zip DLL (not provided). This method call talks directly to the DLL bypassing the ActiveX Control.
o.zipfiles(lcZipFile, lcFileList, lnCompression)
cAlternateContentAllows you to specify alternate content for a message. Allows mixed content message for example that send text and Html so that that non-html email clients can read the text as text and html clients can see the Html
cattachmentSMTP File Attachment. This string can point to one or more files on disk.
cbcclistSMTP Comma Delimited Blind Carbon Copy list
ccclistSMTP Comma Delimited Carbon Copy list
ccontenttypeThe content type of the main message body of an SMTP message. Use this to format text of the message in different formats such as HTML.
cContentTypeAlternateContent type for an Alternate content string set in wwIPStuff::cMessageAlternate, which is used for sending mixed mode messages that display as text on non HTML capable browsers and Html on those that can.
cerrormsgLast Error Message Text for the last operation. Implemented only for SMTP and HTTP operations.
cExtraHeadersAllows you to specify extra HTTP or SMTP headers when sending requests to SMTP servers.
cLogFileIf set causes the mail session to be logged to the file you specify. All received and sent data is written as well as a start and complete/failure entry.
cmailserverDomain name or IP address for your SMTP Server
cmessageSMTP Message Body text.
cpasswordPassword to log on to server (applies to SMTP, FTP and HTTP)
cpriorityPriority of the email message.
crecipientSMTP Message Recipient list. Comma Delimited if multiples.
csenderemailEmail address of the SMTP message sender (return address).
csendernameDisplay name of SMTP message Sender.
cserverHTTP Server Address. Format: www.west-wind.com, or 111.111.111.111
csubjectSMTP Message Subject.
cusernameUsername for log in operations (SMTP, FTP and HTTP).
cVersionThe version number of the wwIPStuff library. This version number should match the DLL version resource. Use this method to verify the correct match between the class and the wwIPStuff.dll file.
lReturnReceiptIf set a return receipt is sent to the sender(s) of the message.
lsecurelinkDetermines whether an HTTP request runs securely over HTTPS/SSL when using the various HTTP functions except HTTPGet().
lusezipFlag to determine whether Encode and DecodeDBF use zipping (not implemented)
nconnecttimeoutTimeout on an HTTP Connection prior to receiving/sending data (5) .
nerrorThe last error code.
nrashandleInternal handle to the RAS Session created with RASDial(). Exposed to allow further access to the handle via API calls.
nServiceFlagsUse this property to override internet service connection flags used by WinINet. Used in the call to InternetConnect().
nSMTPPortPort for SMTP client to connect to.


Last Updated: 10/9/2005 | Send topic feedback