16.1Class SMTP

Simple Mail Transfer Protocol interface.

Class SMTP( server, port )
server A remote server IP or DNS.
port A port name or number, defaults to 'smtp'.
Properties
authSchemes
heloMsg
port
server
timeout
trace
Methods
authSet authentication parameters.
connect
data
extractMail
helo
mailFrom
quit
rcpt
sendSend a MIME part.
sendToSend a mail data to a remote SMTP server.

Properties

authSchemes

heloMsg

port

server

timeout

trace

Methods

auth

Set authentication parameters.

auth( scheme, ... )
scheme The authentication scheme to be used.
... Authentication data (usually, a pair of userid, password parameters).
Returnself

Available schemes are:

connect

connect()

data

data( content )

extractMail

extractMail( field )

helo

helo()

mailFrom

mailFrom( sender )

quit

quit()

rcpt

rcpt( target )

send

Send a MIME part.

send( part )
part A mime.Part instance.
Raise
CodeError if the contents of From or To fields are invalid

Sends a mail to the described recipients. The part must include the From and To headers.

If the Date header is not included, it will be added and set to the current date and date.

See also: mime.

sendTo

Send a mail data to a remote SMTP server.

sendTo( sender, rcpt, data )
sender The sender of the mail.
rcpt Single or multiple mail target recipients.
data A string containing the mail content, properly encoded.
Made with http://www.falconpl.org