SendMail object (Object/NES)

An object that encapsulates an outgoing e-mail message.

Availability:

JavaScript - 1.2
Netscape Enterprise server - 3.0
JavaScript syntax:NESmySendMail = SendMail
NESmySendMail = new SendMail()
Object properties:Bcc, Body, Cc, constructor, ErrorsTo, From, Organization, prototype, ReplyTo, Smtpserver, Subject, To
Object methods:errorCode(), errorMessage(), send()

This provides a way for the Netscape Enterprise Server to send e-mail messages as a result of a client request.

You create a new message handling object with the SendMail() constructor. Then you define where it is going to be sent, its subject matter and content by storing string values in its various properties.

Finally, you transmit the message via an SMTP server with the send() method.

Example code:

   <SERVER>
   mySendMail = new SendMail();
   mySendMail.Smtpserver = "mailhost";
   mySendMail.To = "someone@somewhere.com";
   mySendMail.From = "me@here.com";
   mySendMail.Subject = "A test message";
   mySendMail.Body = "Some body text";
   mySendMail.send();
   </SERVER>

See also:Netscape Enterprise Server, SendMail(), unwatch(), watch()

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
Bcc1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
Body1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
Cc1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
constructor1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
ErrorsTo1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
From1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
Organization1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
prototype1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
ReplyTo1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
Smtpserver1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
Subject1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
To1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-

MethodJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
errorCode()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
errorMessage()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-
send()1.2 1.2 n/a n/a n/a n/a3.0 3.0 n/a n/a n/a n/a-