SMTP API
SMTP Object (AVO)
Copyright © 2001 Deryk Robosson. All Rights Reserved.
Fast Search Index
Constructors
_new
Destructors
_delete
Methods
_init
_deinit
tracelog_out
set_deug
set_options
strerr
errno
sendmail
Constructors
net/mail/smtp/_new
Create SMTP.
Inputs
Outputs
- p<void*>: SMTP instance pointer (0 if error)
Description
This call creates a SMTP instance.
See also
_delete
Destructors
_delete
Destroy SMTP.
Inputs
- p<void*>: smtp instance pointer
Description
This call destroys the SMTP.
See also
_new
Methods
_init
Initialize SMTP class instance.
Inputs
- p<void*>: instance pointer
Description
This method initializes SMTP instance data.
See also
_deinit
_deinit
Deinitialize SMTP class instance.
Inputs
- p<void*>: instance pointer
Description
This method deinitializes SMTP instance data.
See also
_init
tracelog_out
Trace provided output.
Inputs
- p<avo>: instance pointer
- p<char*>: entry pointer
Outputs
Description
This method appended the entry string to the tracelog buffer.
See also
none
set_debug
Set debug properties.
Inputs
- p<avo>: instance pointer
- i<int>: debug option
- p<char*>: tracelog buffer
- i<int>: tracelog buffer size
Outputs
Description
This method sets the attributes for tracing actions performed by this class.
See also
none
set_options
Set class properties.
Inputs
- p<avo>: instance pointer
- i<int>: option
- i<int>: option value
Outputs
- 1 for success, 0 for failure.
Description
This method sets characteristics of this class.
See also
none
strerr
Resolves number to string.
Inputs
- p<avo>: instance pointer
- i<int>: error number
Outputs
- p<char*>: string of requested error number.
Description
This method returns a human readable string value of a valid error number provided to it.
See also
none
errno
Get current error.
Inputs
Outputs
Description
This method returns the current error value maintained internally within the class.
See also
none
sendmail
Sends an email.
Inputs
- p<avo>: instance pointer
- p<char*>: from string
- p<char*>: to string
- p<char*>: mailhost string
- p<char*>: subject string
- p<char*>: body string
Outputs
- i<int>: 0 for success, else error number.
Description
This method attempts to send an email with the specified information.
See also
none
Revision History
- Jan 16 2000 Initial revision