|
|
@ -7,7 +7,7 @@ import type { XcPluginConfig } from 'nc-plugin'; |
|
|
|
const config: XcPluginConfig = { |
|
|
|
const config: XcPluginConfig = { |
|
|
|
builder: SMTPPlugin, |
|
|
|
builder: SMTPPlugin, |
|
|
|
title: 'SMTP', |
|
|
|
title: 'SMTP', |
|
|
|
version: '0.0.2', |
|
|
|
version: '0.0.3', |
|
|
|
// icon: 'mdi-email-outline',
|
|
|
|
// icon: 'mdi-email-outline',
|
|
|
|
description: 'SMTP email client', |
|
|
|
description: 'SMTP email client', |
|
|
|
price: 'Free', |
|
|
|
price: 'Free', |
|
|
@ -18,35 +18,42 @@ const config: XcPluginConfig = { |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
key: 'from', |
|
|
|
key: 'from', |
|
|
|
label: 'From', |
|
|
|
label: 'From Address', |
|
|
|
placeholder: 'eg: admin@run.com', |
|
|
|
placeholder: 'admin@run.com', |
|
|
|
type: XcType.SingleLineText, |
|
|
|
type: XcType.SingleLineText, |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
key: 'host', |
|
|
|
key: 'host', |
|
|
|
label: 'Host', |
|
|
|
label: 'SMTP Server', |
|
|
|
placeholder: 'eg: smtp.run.com', |
|
|
|
placeholder: 'smtp.run.com', |
|
|
|
|
|
|
|
type: XcType.SingleLineText, |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
key: 'name', |
|
|
|
|
|
|
|
label: 'From Domain', |
|
|
|
|
|
|
|
placeholder: 'your-domain.com', |
|
|
|
type: XcType.SingleLineText, |
|
|
|
type: XcType.SingleLineText, |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
key: 'port', |
|
|
|
key: 'port', |
|
|
|
label: 'Port', |
|
|
|
label: 'SMTP Port', |
|
|
|
placeholder: 'Port', |
|
|
|
placeholder: 'Port', |
|
|
|
type: XcType.SingleLineText, |
|
|
|
type: XcType.SingleLineText, |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
key: 'secure', |
|
|
|
key: 'secure', |
|
|
|
label: 'Secure', |
|
|
|
label: 'Use Secure Connection', |
|
|
|
placeholder: 'Secure', |
|
|
|
placeholder: 'Secure', |
|
|
|
type: XcType.Checkbox, |
|
|
|
type: XcType.Checkbox, |
|
|
|
required: false, |
|
|
|
required: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
key: 'ignoreTLS', |
|
|
|
key: 'ignoreTLS', |
|
|
|
label: 'Ignore TLS', |
|
|
|
label: 'Ignore TLS Errors', |
|
|
|
placeholder: 'Ignore TLS', |
|
|
|
placeholder: 'Ignore TLS', |
|
|
|
type: XcType.Checkbox, |
|
|
|
type: XcType.Checkbox, |
|
|
|
required: false, |
|
|
|
required: false, |
|
|
|