SetSender Method
The SetSender method sets the sender name and address.
Syntax
EmailJob.SetSender(adr, name_opt)
|
Parameters
adr |
String that specifies the sender address. |
name_opt |
String that specifies the sender name (optional). |
Return Value
Remarks
Examples
The following example sends an email.
<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