Unclassified NewsBoard Code Reference

smtp_class class

Handles an SMTP server connection

Methods:

add_to Set Rcpt To: value
connect Connect to SMTP server
end Say goodbye and close SMTP server connection
get_feedback Wait for an answer from the server
get_feedback_line Read server answer
hmac RFC 2104 HMAC implementation for php.
Creates an md5 HMAC.
Eliminates the need to install mhash to compute a HMAC
Hacked by Lance Rushing
is_ok Checks a reply code
reset_data Reset internal object state
sendmail Send out the e-mail data
set_from Set Mail From: value

Public fields:

error  –  default: ''
from  –  default: ""
readlength  –  default: 1024
server  –  default: ""
sock  –  default: false
to  –  default: array()

Implementation file: unb_lib/smtp.lib.php, line 18

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.