Main -> Support Zone -> InSite Archives -> May Front Page -> Tips & Techs

InSite, May 1999
Tips & Techs  Pointers from Open SiteSearch Product Support Staff

Modifying EmailRecs.java
Malia Watson, Open SiteSearch Support Specialist

Following are instructions for customizing messages included with email of bookmarked selections.

Steps Example
1. Open /classes/ORG/oclc/obi/extverb in your text editor

Locate: StringBuffer s = new StringBuffer( );

StringBuffer s = new StringBuffer();
if (name != null && name.length() > 0)
s.append("Hello ");
if (name != null && name.length() > 0) {
s.append(name);
s.append(", ");
}
s.append("\n");
if (note != null && note.length() > 0) {
s.append(note);
s.append("\n");
}

s.append("Thanks for using WebZ. \n");
s.append("Here are the records you requested.\n\n");
s.append(message);
s.append("\nThis message was generated by BookMarkEmail.\n");

2. Edit text in the s.append methods

Substitute your institution's message

s.append("University Systems");
 

3. Save file then recompile

NOTE: In order for the file to successfully compile, your CLASSPATH must be set correctly.

For more information about setting the CLASSPATH variable:
Configuring the CLASSPATH Variable for UNIX or
Configuring the CLASSPATH Variable for NT.

javac EmailRecs.java


[Main][Documentation][Support][Technical Reference][Glossary][Search]