Availability: |
| |||
JavaScript syntax: | NES | mySendMail = SendMail | ||
NES | mySendMail = 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.
<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() |
Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
Bcc | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
Body | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
Cc | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
constructor | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
ErrorsTo | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
From | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
Organization | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
prototype | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
ReplyTo | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
Smtpserver | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
Subject | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
To | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
Method | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
errorCode() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
errorMessage() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
send() | 1.2 ![]() | ![]() | ![]() | ![]() | ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | - |
Prev | Home | Next |
Semi-colon (;) | Up | SendMail() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |