use of com.helger.photon.core.smtp.NamedSMTPSettings in project peppol-practical by phax.
the class AppInternalErrorHandler method doSetup.
public static void doSetup() {
// Set global internal error handlers
new AppInternalErrorHandler().install();
final NamedSMTPSettings aNamedSettings = PhotonCoreManager.getSMTPSettingsMgr().getSettings(CNamedSMTPSettings.NAMED_SMTP_SETTINGS_DEFAULT_ID);
final ISMTPSettings aSMTPSettings = aNamedSettings == null ? null : aNamedSettings.getSMTPSettings();
InternalErrorSettings.setSMTPSenderAddress(new EmailAddress("peppol@helger.com", "peppol.helger.com application"));
InternalErrorSettings.setSMTPReceiverAddress(new EmailAddress("philip@helger.com", "Philip"));
InternalErrorSettings.setSMTPSettings(aSMTPSettings);
InternalErrorSettings.setFallbackLocale(CPPApp.DEFAULT_LOCALE);
}
use of com.helger.photon.core.smtp.NamedSMTPSettings in project phoss-directory by phax.
the class AppInternalErrorHandler method doSetup.
public static void doSetup() {
// Set global internal error handlers
new AppInternalErrorHandler().install();
final NamedSMTPSettings aNamedSettings = PhotonCoreManager.getSMTPSettingsMgr().getSettings(CNamedSMTPSettings.NAMED_SMTP_SETTINGS_DEFAULT_ID);
final ISMTPSettings aSMTPSettings = aNamedSettings == null ? null : aNamedSettings.getSMTPSettings();
InternalErrorSettings.setSMTPSenderAddress(new EmailAddress("pd@helger.com", CPDPublisher.getApplicationTitle()));
InternalErrorSettings.setSMTPReceiverAddress(new EmailAddress("philip@helger.com", "Philip"));
InternalErrorSettings.setSMTPSettings(aSMTPSettings);
InternalErrorSettings.setFallbackLocale(AppCommonUI.DEFAULT_LOCALE);
}
Aggregations