n8n/packages/nodes-base/credentials/Smtp.credentials.ts

47 lines
772 B
TypeScript
Raw Normal View History

2019-06-23 03:35:23 -07:00
import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class Smtp implements ICredentialType {
name = 'smtp';
displayName = 'SMTP';
properties = [
{
displayName: 'User',
name: 'user',
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string' as NodePropertyTypes,
typeOptions: {
password: true,
},
default: '',
},
{
displayName: 'Host',
name: 'host',
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Port',
name: 'port',
type: 'number' as NodePropertyTypes,
default: 465,
},
{
displayName: 'SSL/TLS',
name: 'secure',
type: 'boolean' as NodePropertyTypes,
default: true,
},
];
}