Myna.Mail

Email Object

Example

new Myna.Mail({
to:"no-one@nowhere.info",
from:"some-one@nowhere.info",
subject:"Mail test",
isHtml:true,
body:<ejs>
<table border="1" >
<tr>
<th >
this..
</th>
<td> is HTML</td>
</tr>
</table>
</ejs>,
attachments:[
new Myna.File("/application.sjs"),
"/myna/ext/resources/images/default/editor/tb-sprite.gif"
]
}).send()
Summary
Myna.MailEmail Object
Functions
Myna.MailConstruct a Mail object
sendsend this email

Functions

Myna.Mail

Myna.Mail = function (options)

Construct a Mail object

Parameters

optionsAn Options Object that contains configuration information for this mail object.  See below

Options

from”From” email address
toComma separated list of “to” email addresses
ccOptional default ‘’ Comma separated list of “cc” email addresses
bccOptional default ‘’ Comma separated list of “bcc” email addresses
subjectOptional default ‘’ email subject
bodyOptional default ‘’ email body.  If this is html, be sure to set isHtml to true
isHtmlOptional default false If true, body will be interpreted as html
attachmentsOptional default [] Optional array of Myna.File objects or MynaPath strings that represent files to attach to this email
headersOptional, default {} Additional headers to set, where the key is the header name

send

Myna.Mail.prototype.send=function()

send this email

Myna.Mail = function (options)
Construct a Mail object
Myna.Mail.prototype.send=function()
send this email
A Javascript friendly proxy for java.io.File
A MynaPath is a file URI String with certain automatic translations.