Domino Code Fragment
| Code Name* setEnvironmentVar method | Date* 10/29/2025 | Source (or email address if you prefer)* [email protected] IP address:.104.23.190.247 | |
| Description* 2. This script sets the value of the MailServer system environment variable to "Tornado." | Type* Java | Categories* (Misc) | |
| Implementation: | Required Client: | Server: |
| Limitations: | Comments: | |
class setenvvar2 extends NotesThread
{
public static void main(String argv[])
{
setenvvar2 t = new setenvvar2();
t.start();
}
public void runNotes()
{
try
{
Session s = Session.newInstance();
s.setEnvironmentVar("MailServer", "Tornado", true);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}