mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix email provider params
This commit is contained in:
committed by
Torsten Dittmann
parent
e3664b8d55
commit
1d31cd0ece
@@ -141,7 +141,10 @@
|
||||
name: $providerParams[$provider].name,
|
||||
enabled: $providerParams[$provider].enabled,
|
||||
isEuRegion: $providerParams[$provider].isEuRegion,
|
||||
from: $providerParams[$provider].from,
|
||||
fromEmail: $providerParams[$provider].fromEmail,
|
||||
fromName: $providerParams[$provider].fromName,
|
||||
replyToEmail: $providerParams[$provider].replyToEmail,
|
||||
replyToName: $providerParams[$provider].replyToName,
|
||||
apiKey: $providerParams[$provider].apiKey,
|
||||
domain: $providerParams[$provider].domain
|
||||
}
|
||||
@@ -162,7 +165,10 @@
|
||||
providerId: providerId,
|
||||
name: $providerParams[$provider].name,
|
||||
enabled: $providerParams[$provider].enabled,
|
||||
from: $providerParams[$provider].from,
|
||||
fromEmail: $providerParams[$provider].fromEmail,
|
||||
fromName: $providerParams[$provider].fromName,
|
||||
replyToEmail: $providerParams[$provider].replyToEmail,
|
||||
replyToName: $providerParams[$provider].replyToName,
|
||||
apiKey: $providerParams[$provider].apiKey
|
||||
}
|
||||
);
|
||||
|
||||
@@ -133,7 +133,7 @@ export const providers: ProvidersMap = {
|
||||
// [Providers.MQTT]: {
|
||||
// imageIcon: 'mqtt',
|
||||
// title: 'MQTT',
|
||||
// description: 'Message Queuing Telemtry Transport'
|
||||
// description: 'Message Queuing Telemetry Transport'
|
||||
// }
|
||||
}
|
||||
},
|
||||
@@ -178,9 +178,27 @@ export const providers: ProvidersMap = {
|
||||
},
|
||||
{
|
||||
label: 'Sender email',
|
||||
name: 'from',
|
||||
name: 'fromEmail',
|
||||
type: 'email',
|
||||
placeholder: 'Enter email'
|
||||
},
|
||||
{
|
||||
label: 'Sender name',
|
||||
name: 'fromName',
|
||||
type: 'text',
|
||||
placeholder: 'Enter name'
|
||||
},
|
||||
{
|
||||
label: 'Reply-to email',
|
||||
name: 'replyToEmail',
|
||||
type: 'email',
|
||||
placeholder: 'Enter email'
|
||||
},
|
||||
{
|
||||
label: 'Reply-to name',
|
||||
name: 'replyToName',
|
||||
type: 'text',
|
||||
placeholder: 'Enter name'
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -202,9 +220,27 @@ export const providers: ProvidersMap = {
|
||||
},
|
||||
{
|
||||
label: 'Sender email',
|
||||
name: 'from',
|
||||
name: 'fromEmail',
|
||||
type: 'email',
|
||||
placeholder: 'Enter email'
|
||||
},
|
||||
{
|
||||
label: 'Sender name',
|
||||
name: 'fromName',
|
||||
type: 'text',
|
||||
placeholder: 'Enter name'
|
||||
},
|
||||
{
|
||||
label: 'Reply-to email',
|
||||
name: 'replyToEmail',
|
||||
type: 'email',
|
||||
placeholder: 'Enter email'
|
||||
},
|
||||
{
|
||||
label: 'Reply-to name',
|
||||
name: 'replyToName',
|
||||
type: 'text',
|
||||
placeholder: 'Enter name'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -139,7 +139,10 @@
|
||||
name: $providerParams[$provider].name,
|
||||
enabled: $providerParams[$provider].enabled,
|
||||
isEuRegion: $providerParams[$provider].isEuRegion,
|
||||
from: $providerParams[$provider].from,
|
||||
fromEmail: $providerParams[$provider].fromEmail,
|
||||
fromName: $providerParams[$provider].fromName,
|
||||
replyToEmail: $providerParams[$provider].replyToEmail,
|
||||
replyToName: $providerParams[$provider].replyToName,
|
||||
apiKey: $providerParams[$provider].apiKey,
|
||||
domain: $providerParams[$provider].domain
|
||||
}
|
||||
@@ -160,7 +163,10 @@
|
||||
providerId: providerId,
|
||||
name: $providerParams[$provider].name,
|
||||
enabled: $providerParams[$provider].enabled,
|
||||
from: $providerParams[$provider].from,
|
||||
fromEmail: $providerParams[$provider].fromEmail,
|
||||
fromName: $providerParams[$provider].fromName,
|
||||
replyToEmail: $providerParams[$provider].replyToEmail,
|
||||
replyToName: $providerParams[$provider].replyToName,
|
||||
apiKey: $providerParams[$provider].apiKey
|
||||
}
|
||||
);
|
||||
|
||||
@@ -71,7 +71,10 @@
|
||||
name: name,
|
||||
enabled: true,
|
||||
isEuRegion: false,
|
||||
from: '',
|
||||
fromEmail: '',
|
||||
fromName: '',
|
||||
replyToEmail: '',
|
||||
replyToName: '',
|
||||
apiKey: '',
|
||||
domain: ''
|
||||
};
|
||||
@@ -82,7 +85,10 @@
|
||||
name: name,
|
||||
enabled: true,
|
||||
apiKey: '',
|
||||
from: ''
|
||||
fromEmail: '',
|
||||
fromName: '',
|
||||
replyToEmail: '',
|
||||
replyToName: '',
|
||||
};
|
||||
break;
|
||||
case Providers.FCM:
|
||||
|
||||
@@ -47,14 +47,20 @@ export type VonageProviderParams = ProviderParams & {
|
||||
*/
|
||||
|
||||
export type MailgunProviderParams = ProviderParams & {
|
||||
fromEmail: string;
|
||||
fromName: string;
|
||||
replyToEmail: string;
|
||||
replyToName: string;
|
||||
isEuRegion: boolean;
|
||||
from: string;
|
||||
apiKey: string;
|
||||
domain: string;
|
||||
};
|
||||
|
||||
export type SendgridProviderParams = ProviderParams & {
|
||||
from: string;
|
||||
fromEmail: string;
|
||||
fromName: string;
|
||||
replyToEmail: string;
|
||||
replyToName: string;
|
||||
apiKey: string;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user