Email Object
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()
Myna.Mail = function ( options )
Construct a Mail object
| options | An Options Object that contains configuration information for this mail object. See below |
| from | ”From” email address |
| to | Comma separated list of “to” email addresses |
| cc | Optional default ‘’ Comma separated list of “cc” email addresses |
| bcc | Optional default ‘’ Comma separated list of “bcc” email addresses |
| subject | Optional default ‘’ email subject |
| body | Optional default ‘’ email body. If this is html, be sure to set isHtml to true |
| isHtml | Optional default false If true, body will be interpreted as html |
| attachments | Optional default [] Optional array of Myna.File objects or MynaPath strings that represent files to attach to this email |
Construct a Mail object
Myna.Mail = function ( options )
send this email
Myna.Mail.prototype.send=function()