Search in sources :

Example 1 with NamedSMTPSettings

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);
}
Also used : ISMTPSettings(com.helger.smtp.settings.ISMTPSettings) EmailAddress(com.helger.commons.email.EmailAddress) NamedSMTPSettings(com.helger.photon.core.smtp.NamedSMTPSettings) CNamedSMTPSettings(com.helger.photon.core.smtp.CNamedSMTPSettings)

Example 2 with NamedSMTPSettings

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);
}
Also used : ISMTPSettings(com.helger.smtp.settings.ISMTPSettings) EmailAddress(com.helger.commons.email.EmailAddress) NamedSMTPSettings(com.helger.photon.core.smtp.NamedSMTPSettings) CNamedSMTPSettings(com.helger.photon.core.smtp.CNamedSMTPSettings)

Aggregations

EmailAddress (com.helger.commons.email.EmailAddress)2 CNamedSMTPSettings (com.helger.photon.core.smtp.CNamedSMTPSettings)2 NamedSMTPSettings (com.helger.photon.core.smtp.NamedSMTPSettings)2 ISMTPSettings (com.helger.smtp.settings.ISMTPSettings)2