掲示板
Configure the mail server settings
12年前 に Marcus Hain によって更新されました。
Configure the mail server settings
New Member 投稿: 12 参加年月日: 11/11/15 最新の投稿
Hi,
My question is how can I get values from "Configure the mail server settings" in Server Administration in my portlet?
Best regards.
My question is how can I get values from "Configure the mail server settings" in Server Administration in my portlet?
Best regards.
12年前 に jelmer kuperus によって更新されました。
RE: Configure the mail server settings
Liferay Legend 投稿: 1191 参加年月日: 10/03/10 最新の投稿
Something like this :
PortletPreferences preferences = PrefsPropsUtil.getPreferences();
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_ADVANCED_PROPERTIES, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_POP3_HOST, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_POP3_PASSWORD, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_POP3_PORT, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_POP3_USER, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_SMTP_HOST, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_SMTP_PASSWORD, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_SMTP_PORT, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_SMTP_USER, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_STORE_PROTOCOL, defaultValue);
preferences.getValue(PropsKeys.MAIL_SESSION_MAIL_TRANSPORT_PROTOCOL, defaultValue);
12年前 に Marcus Hain によって更新されました。
RE: Configure the mail server settings (回答)
New Member 投稿: 12 参加年月日: 11/11/15 最新の投稿
Hi,
Your suggestion helped me answer the question, thank you very much.
Below code that I used with success:
Best regards.
Your suggestion helped me answer the question, thank you very much.
Below code that I used with success:
String smtpUser = PrefsPropsUtil.getString(PropsKeys.MAIL_SESSION_MAIL_SMTP_USER);
Best regards.