Documentation

Chapter 70. smtpclientlib

This library provides a more direct access to the sending of SMTP emails than the sendmail library, and it is used by the sendmail library. It currently only implements text-based emails. See the source code for further information.

smtpmessage

Description

Type Tags

None

Object Value

Objects of type smtpmessage have no value, and it is an error to try to get or set this value.

smtpmessage.new()

Description

Prototype

smtpmessage.new ( smtpmessage me, string contenttype, string transferencoding )

Parameters

ParameterDefault valueType nameDescription
meNonesmtpmessage
contenttypetext/plain; charset="iso-8859-15"string
transferencoding8bitstring

Properties

PropertyTypeDescription
addrecipfunction
attachmentsobjset
bccobjset
bodystring
ccobjset
commentstring
contenttypestring
dtdatetime
fromstring
getaddressfunction
hostnamestring
mailhoststring
messageidstring
preparemsgfunction
replytostring
sendfunction
send8bitfunction
subjectstring
timezonestring
toobjset
transferencodingstring
typetype

Methods

addrecip()

Description

Prototype

smtpmessagevar.addrecip ( smtpmessage me, string reciptype, string address )

Parameters
ParameterDefault valueType nameDescription
meNonesmtpmessage
reciptypeNonestring
addressNonestring

getaddress()

Description

Prototype

smtpmessagevar.getaddress ( smtpmessage me, string s )

Parameters
ParameterDefault valueType nameDescription
meNonesmtpmessage
sNonestring

send()

Description

Prototype

smtpmessagevar.send ( smtpmessage me )

Parameters
ParameterDefault valueType nameDescription
meNonesmtpmessage

send8bit()

Description

Prototype

smtpmessagevar.send8bit ( smtpmessage me )

Parameters
ParameterDefault valueType nameDescription
meNonesmtpmessage