Object | +--Mail
Deprecated use {link helma.Mail} instead
Defined in Mail.js
| SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods |
| Constructor Summary | |
Mail()
Helma's built-in mail client enables you to send e-mail via SMTP. |
|
| Methods Summary | |
void
|
addBCC(<String> emailString, <String> nameString)
Adds a recipient to the list of addresses to get a "blind carbon copy" of an e-mail message. |
void
|
addCC(<String> emailString, <String> nameString)
Adds an address to the list of carbon copy recipients. |
void
|
addPart(fileOrMimeObject, <String> nameString)
Adds an attachment to an e-mail message. |
void
|
addTo(<String> emailString, <String> nameString)
Adds a recipient to the address list of an e-mail message. |
void
|
send()
Sends an e-mail message. |
void
|
setFrom(<String> emailString, <String> nameString)
Sets the sender of an e-mail message. |
void
|
setSubject(<String> subject)
Sets the subject of an e-mail message. |
void
|
setTo(<String> emailString, <String> nameString)
Sets the recipient of an e-mail message. |
<static> void
|
addText(<String> text)
Appends a string to the body text of an e-mail message. |
| Constructor Detail |
Mail()
| Method Detail |
void addBCC(<String> emailString, <String> nameString)
var mail = new Mail();
mail.addBCC("hop@helma.at");
mail.addBCC("tobi@helma.at", "Tobi Schaefer");
emailString - as String, receipients email address
nameString - as String, optional receipients name
void addCC(<String> emailString, <String> nameString)
var mail = new Mail();
mail.addCC("hop@helma.at");
mail.addCC("tobi@helma.at", "Tobi Schaefer");
emailString - as String, receipients email address
nameString - as String, optional receipients name
void addPart(fileOrMimeObject, <String> nameString)
var file1 = getURL("http://localhost:8080/static/image.gif");
var file2 = getURL("file:////home/snoopy/woodstock.jpg");
var file3 = new java.io.File("/home/snoopy/woodstock.jpg");
var mail = new Mail();
mail.addPart(file1);
mail.addPart(file2);
mail.addPart(file3);
mail.setFrom("snoopy@doghouse.com");
mail.setTo("woodstock@birdcage.com");
mail.setSubject("Look at this!");
mail.addText("I took a photograph from you. Neat, isn't it? -Snoop");
mail.send();
nameString - as String, optional name of the attachment
File - or Mime object to attach to the email
void addTo(<String> emailString, <String> nameString)
var mail = new Mail();
mail.setTo("hop@helma.at");
mail.addTo("hopdoc@helma.at");
mail.addTo("tobi@helma.at", "Tobi Schaefer");
emailString - as String, receipients email address
nameString - as String, optional receipients name
void send()
var mail = new Mail();
mail.setTo("watching@michi.tv", "michi");
mail.addCC("franzi@home.at", "franzi");
mail.addBCC("monie@home.at");
mail.setFrom("chef@frischfleisch.at", "Hannes");
mail.setSubject("Registration Conformation");
mail.addText("Thanks for your Registration...");
mail.send();
void setFrom(<String> emailString, <String> nameString)
var mail = new Mail();
mail.setFrom("tobi@helma.at", "Tobi Schaefer");
emailString - as String, sender email address
nameString - as String, optional sender name
void setSubject(<String> subject)
var mail = new Mail();
mail.setSubject("Hello, World!");
subject - as String, the email subject
void setTo(<String> emailString, <String> nameString)
var mail = new Mail();
mail.setTo("hop@helma.at");
emailString - as String, receipients email address
nameString - as String, optional receipients name
<static> void addText(<String> text)
var mail = new Mail();
mail.addText("Hello, World!");
text - as String, to be appended to the message body
| SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods |