|
|
@ -20,7 +20,13 @@ const messages = defineMessages({
|
|
|
|
emailsender: 'Sender Address',
|
|
|
|
emailsender: 'Sender Address',
|
|
|
|
smtpHost: 'SMTP Host',
|
|
|
|
smtpHost: 'SMTP Host',
|
|
|
|
smtpPort: 'SMTP Port',
|
|
|
|
smtpPort: 'SMTP Port',
|
|
|
|
enableSsl: 'Enable SSL',
|
|
|
|
encryption: 'Encryption Method',
|
|
|
|
|
|
|
|
encryptionTip:
|
|
|
|
|
|
|
|
'In most cases, Implicit TLS uses port 465 and STARTTLS uses port 587',
|
|
|
|
|
|
|
|
encryptionNone: 'None',
|
|
|
|
|
|
|
|
encryptionDefault: 'Use STARTTLS if available',
|
|
|
|
|
|
|
|
encryptionOpportunisticTls: 'Always use STARTTLS',
|
|
|
|
|
|
|
|
encryptionImplicitTls: 'Use Implicit TLS',
|
|
|
|
authUser: 'SMTP Username',
|
|
|
|
authUser: 'SMTP Username',
|
|
|
|
authPass: 'SMTP Password',
|
|
|
|
authPass: 'SMTP Password',
|
|
|
|
emailsettingssaved: 'Email notification settings saved successfully!',
|
|
|
|
emailsettingssaved: 'Email notification settings saved successfully!',
|
|
|
@ -29,8 +35,6 @@ const messages = defineMessages({
|
|
|
|
toastEmailTestSuccess: 'Email test notification sent!',
|
|
|
|
toastEmailTestSuccess: 'Email test notification sent!',
|
|
|
|
toastEmailTestFailed: 'Email test notification failed to send.',
|
|
|
|
toastEmailTestFailed: 'Email test notification failed to send.',
|
|
|
|
allowselfsigned: 'Allow Self-Signed Certificates',
|
|
|
|
allowselfsigned: 'Allow Self-Signed Certificates',
|
|
|
|
ssldisabletip:
|
|
|
|
|
|
|
|
'SSL should be disabled on standard TLS connections (port 587)',
|
|
|
|
|
|
|
|
senderName: 'Sender Name',
|
|
|
|
senderName: 'Sender Name',
|
|
|
|
validationEmail: 'You must provide a valid email address',
|
|
|
|
validationEmail: 'You must provide a valid email address',
|
|
|
|
emailNotificationTypesAlertDescription:
|
|
|
|
emailNotificationTypesAlertDescription:
|
|
|
@ -132,7 +136,13 @@ const NotificationsEmail: React.FC = () => {
|
|
|
|
emailFrom: data.options.emailFrom,
|
|
|
|
emailFrom: data.options.emailFrom,
|
|
|
|
smtpHost: data.options.smtpHost,
|
|
|
|
smtpHost: data.options.smtpHost,
|
|
|
|
smtpPort: data.options.smtpPort ?? 587,
|
|
|
|
smtpPort: data.options.smtpPort ?? 587,
|
|
|
|
secure: data.options.secure,
|
|
|
|
encryption: data.options.secure
|
|
|
|
|
|
|
|
? 'implicit'
|
|
|
|
|
|
|
|
: data.options.requireTls
|
|
|
|
|
|
|
|
? 'opportunistic'
|
|
|
|
|
|
|
|
: data.options.ignoreTls
|
|
|
|
|
|
|
|
? 'none'
|
|
|
|
|
|
|
|
: 'default',
|
|
|
|
authUser: data.options.authUser,
|
|
|
|
authUser: data.options.authUser,
|
|
|
|
authPass: data.options.authPass,
|
|
|
|
authPass: data.options.authPass,
|
|
|
|
allowSelfSigned: data.options.allowSelfSigned,
|
|
|
|
allowSelfSigned: data.options.allowSelfSigned,
|
|
|
@ -150,7 +160,9 @@ const NotificationsEmail: React.FC = () => {
|
|
|
|
emailFrom: values.emailFrom,
|
|
|
|
emailFrom: values.emailFrom,
|
|
|
|
smtpHost: values.smtpHost,
|
|
|
|
smtpHost: values.smtpHost,
|
|
|
|
smtpPort: Number(values.smtpPort),
|
|
|
|
smtpPort: Number(values.smtpPort),
|
|
|
|
secure: values.secure,
|
|
|
|
secure: values.encryption === 'implicit',
|
|
|
|
|
|
|
|
ignoreTls: values.encryption === 'none',
|
|
|
|
|
|
|
|
requireTls: values.encryption === 'opportunistic',
|
|
|
|
authUser: values.authUser,
|
|
|
|
authUser: values.authUser,
|
|
|
|
authPass: values.authPass,
|
|
|
|
authPass: values.authPass,
|
|
|
|
allowSelfSigned: values.allowSelfSigned,
|
|
|
|
allowSelfSigned: values.allowSelfSigned,
|
|
|
@ -196,7 +208,9 @@ const NotificationsEmail: React.FC = () => {
|
|
|
|
emailFrom: values.emailFrom,
|
|
|
|
emailFrom: values.emailFrom,
|
|
|
|
smtpHost: values.smtpHost,
|
|
|
|
smtpHost: values.smtpHost,
|
|
|
|
smtpPort: Number(values.smtpPort),
|
|
|
|
smtpPort: Number(values.smtpPort),
|
|
|
|
secure: values.secure,
|
|
|
|
secure: values.encryption === 'implicit',
|
|
|
|
|
|
|
|
ignoreTls: values.encryption === 'none',
|
|
|
|
|
|
|
|
requireTls: values.encryption === 'opportunistic',
|
|
|
|
authUser: values.authUser,
|
|
|
|
authUser: values.authUser,
|
|
|
|
authPass: values.authPass,
|
|
|
|
authPass: values.authPass,
|
|
|
|
senderName: values.senderName,
|
|
|
|
senderName: values.senderName,
|
|
|
@ -339,14 +353,29 @@ const NotificationsEmail: React.FC = () => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="form-row">
|
|
|
|
<div className="form-row">
|
|
|
|
<label htmlFor="secure" className="checkbox-label">
|
|
|
|
<label htmlFor="encryption" className="text-label">
|
|
|
|
<span>{intl.formatMessage(messages.enableSsl)}</span>
|
|
|
|
{intl.formatMessage(messages.encryption)}
|
|
|
|
<span className="label-tip">
|
|
|
|
<span className="label-required">*</span>
|
|
|
|
{intl.formatMessage(messages.ssldisabletip)}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<div className="form-input">
|
|
|
|
<div className="form-input">
|
|
|
|
<Field type="checkbox" id="secure" name="secure" />
|
|
|
|
<div className="form-input-field">
|
|
|
|
|
|
|
|
<Field as="select" id="encryption" name="encryption">
|
|
|
|
|
|
|
|
<option value="none">
|
|
|
|
|
|
|
|
{intl.formatMessage(messages.encryptionNone)}
|
|
|
|
|
|
|
|
</option>
|
|
|
|
|
|
|
|
<option value="default">
|
|
|
|
|
|
|
|
{intl.formatMessage(messages.encryptionDefault)}
|
|
|
|
|
|
|
|
</option>
|
|
|
|
|
|
|
|
<option value="opportunistic">
|
|
|
|
|
|
|
|
{intl.formatMessage(
|
|
|
|
|
|
|
|
messages.encryptionOpportunisticTls
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
</option>
|
|
|
|
|
|
|
|
<option value="implicit">
|
|
|
|
|
|
|
|
{intl.formatMessage(messages.encryptionImplicitTls)}
|
|
|
|
|
|
|
|
</option>
|
|
|
|
|
|
|
|
</Field>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="form-row">
|
|
|
|
<div className="form-row">
|
|
|
|