this.latestMessage = message;
return 1;
}
public static CorrespondenceSettings newSettings() {
CorrespondenceSettings settings = new CorrespondenceSettings();
settings.setNotificationType( "Melding fra Bergen kommune" );
settings.setFromAddress( "einarvalen@gmail.com" );
settings.setLanguageCode( "1044" );
settings.setServiceCode( "1268" );
settings.setEndpoint( "https://tt02.altinn.basefarm.net/ServiceEngineExternal/CorrespondenceAgencyExternalBasic.svc" );
settings.setSystemUserName( "BK_meldinger" );
settings.setSystemPassword( "UO6pXuIt" );
settings.setSystemUserCode( "BK_meldinger" );
settings.setServiceEdition( "1" );
settings.setBodyTemplate( "<h1>$TITTEL</h1><p>$MELDING</p><p>For å åpne dokumentet, <a href='$Link'> Klikk her. </a>" );
settings.setSubjectTemplate( "$TITTEL" );
return settings;
}