SetReplyTo Method



 
The SetReplyTo method sets the reply name and address.


Syntax

    EmailJob.SetReplyTo(adr, name_opt)
Parameters
    adr String that specifies the reply address.
    name_opt String that specifies the reply name (optional).
Return Value
    None.
Remarks
    The reply address is the destination of the mail that will be sent if the recipient of your mail uses the reply button in her email client.
Examples
    The following example sends an email with a special reply 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.SetReplyTo("me2@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