Simple Mail Transfer Protocol (SMTP)


CLASS aprSMTP

 

Description
The SMTP client library enables an application to send electronic mail to a remote host.  

 

For Secure Edition information, see SLL Certificates.

 

 Variables

 

cErr

Holds the Last Error description

 

Debug

Logical for Enabling / Disabling additional Debug messages

 

DebugTrace

Logical. Whether or not to include the Callstack in the Debug messages

 

LastSMTPServer

Holds the address of the last successful connection.

 

nErr

Holds the Last Error number

 

Session

Handle to the New / Current Message

 

  

 

 Methods

 

New()

Initialize the library for use by the calling process

 

Destroy()

Releases resources for the Instance of the aprSMTP Class

 

  

 

 

AddRecipient()

Add an address to the receipient list

 

AppendMessage()

Append contents of specified file to the current message

 

AuthenticateUser()

Authenticate the client session with a user name and password

 

BeginMessage()

Begin a new message

 

Cancel()

Cancel the current blocking operation

 

Command()

Send a command to the server

 

Connect()

Connect to the specified server

 

ConnectEx()

Establish a secure client connection with a remote server

 

Disconnect()

Disconnect from the current server

 

EndMessage()

End the current message and deliver to recipients

 

ExpandAddress()

Expand the specified address

 

GetCurrentDate()

Return the current date and time

 

GetDeliveryOptions()

Return the delivery options for the current session

 

GetExtendedOptions()

Return the extended options supported by the server

 

GetMessageBytesCopied()

Return the number of bytes sent for the current message

 

GetResultCode()

Return the result code from the previous command

 

GetResultString()

Return the result string from the previous command

 

GetSecurityInformation()

Return security information about the current client connection

 

GetSocket()

Return the current session socket

 

Hello()

Identify the client to the remote server

 

HelloEx()

Identify the client to the remote server

 

IsBlocking()

Determine if the client is blocked, waiting for information

 

Reset()

Reset the client

 

SendMessage()

Send message to the specified recipient

 

SetDeliveryOptions()

Set the delivery options for the current session

 

SetLastError()

Set the last error code

 

Timeout()

Get/Set the number of seconds until an operation times out

 

Trace()

Enable/Disable logging of socket-level calls to the trace log

 

VerifyAddress()

Verify that the specified address is valid

 

Write()

Write data to the server

 

aSocks Secure Edition

 

See SSL Certificates