# EmailJob Object The EmailJob object permits sending emails. Members Table The following table lists the members provided by the EmailJob object.
Members
Properties | Description
Authentication | Type of authentication to get access to the SMTP server.
Charset | Charset of the email.
HTMLBody | HTML text of the email.
Password | Password for the authentication.
PlainBody | Plain text of the email.
POPPort | Port used by the POP server.
POPServer | Address of the POP server.
Priority | Priority of the email.
SMTPPort | Port used by the SMTP server.
SMTPServer | Address of the SMTP server.
Subject | Subject of the email.
Username | Username for the authentication.
Methods | Description
AddAttachment | Adds an attachment.
AddBCCRecipient | Adds a bcc recipient.
AddCCRecipient | Adds a cc recipient.
AddRecipient | Adds a recipient.
Send | Sends the email.
SetReplyTo | Sets the reply name and address.
SetSender | Sets the name and address of the sender.
Events | Description
OnProgressChange | Fires when the progress changes.
OnSendComplete | Fires when the email is sent.
OnStatusTextChange | Fires when the status changes.
Remarks This object is returned by the CreateJob method. Use the EmailJob object to send emails. Note that the path of a file using SiteKiosk objects must be allowed in the SiteKiosk configuration (Security -> Access -> URL's With Script Permission) if it is not a browser skin file. Examples The following example sends an email to a specified address.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mymail = SiteKiosk.Email.CreateJob(false);
    mymail.POPServer = "mypopserver.com";
    mymail.POPPort = 110;
    mymail.Username = "myusername";
    mymail.Password = "mypassword";
    mymail.SMTPServer = "mysmtpserver.com";
    mymail.SMTPPort = 25;
    mymail.Authentication = 2;
    mymail.SetSender("me@myserver.com", "My name");
    mymail.AddRecipient("recipient@server.com");
    mymail.Subject = "This is the subject.";
    mymail.PlainBody = "This is the content.";
    mymail.Send(0, false, true);
    </SCRIPT>
Applies to SiteKiosk v5.0 (and later versions). Back to top