2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
export class Smtp implements ICredentialType {
|
|
|
|
name = 'smtp';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
displayName = 'SMTP';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-12-22 08:01:29 -08:00
|
|
|
documentationUrl = 'sendemail';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2019-06-23 03:35:23 -07:00
|
|
|
{
|
|
|
|
displayName: 'User',
|
|
|
|
name: 'user',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
typeOptions: {
|
|
|
|
password: true,
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Host',
|
|
|
|
name: 'host',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Port',
|
|
|
|
name: 'port',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'number',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: 465,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'SSL/TLS',
|
|
|
|
name: 'secure',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'boolean',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: true,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|