@@ -4273,7 +4273,7 @@ export type GetConnectedImapSmtpCaldavAccountQueryVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type GetConnectedImapSmtpCaldavAccountQuery = { __typename?: 'Query', getConnectedImapSmtpCaldavAccount: { __typename?: 'ConnectedImapSmtpCaldavAccount', id: string, handle: string, provider: string, accountOwnerId: string, connectionParameters?: { __typename?: 'ImapSmtpCaldavConnectionParameters', IMAP?: { __typename?: 'ConnectionParametersOutput', host: string, port: number, secure?: boolean | null, password: string } | null, SMTP?: { __typename?: 'ConnectionParametersOutput', host: string, port: number, secure?: boolean | null, password: string } | null, CALDAV?: { __typename?: 'ConnectionParametersOutput', host: string, username?: string | null, password: string } | null } | null } };
|
||||
export type GetConnectedImapSmtpCaldavAccountQuery = { __typename?: 'Query', getConnectedImapSmtpCaldavAccount: { __typename?: 'ConnectedImapSmtpCaldavAccount', id: string, handle: string, provider: string, accountOwnerId: string, connectionParameters?: { __typename?: 'ImapSmtpCaldavConnectionParameters', IMAP?: { __typename?: 'ConnectionParametersOutput', host: string, port: number, secure?: boolean | null, password: string } | null, SMTP?: { __typename?: 'ConnectionParametersOutput', host: string, username?: string | null, port: number, secure?: boolean | null, password: string } | null, CALDAV?: { __typename?: 'ConnectionParametersOutput', host: string, username?: string | null, password: string } | null } | null } };
|
||||
|
||||
export type CreateDatabaseConfigVariableMutationVariables = Exact<{
|
||||
key: Scalars['String'];
|
||||
@@ -8239,6 +8239,7 @@ export const GetConnectedImapSmtpCaldavAccountDocument = gql`
|
||||
}
|
||||
SMTP {
|
||||
host
|
||||
username
|
||||
port
|
||||
secure
|
||||
password
|
||||
|
||||
+16
@@ -202,6 +202,22 @@ export const SettingsAccountsConnectionForm = ({
|
||||
)}
|
||||
/>
|
||||
|
||||
<Controller
|
||||
name="SMTP.username"
|
||||
control={control}
|
||||
render={({ field, fieldState }) => (
|
||||
<SettingsTextInput
|
||||
instanceId="smtp-username-connection-form"
|
||||
label={t`SMTP Username`}
|
||||
placeholder={t`john.doe`}
|
||||
type="text"
|
||||
value={field.value || ''}
|
||||
onChange={field.onChange}
|
||||
error={fieldState.error?.message}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
||||
<Controller
|
||||
name="SMTP.password"
|
||||
control={control}
|
||||
|
||||
+1
@@ -16,6 +16,7 @@ export const GET_CONNECTED_IMAP_SMTP_CALDAV_ACCOUNT = gql`
|
||||
}
|
||||
SMTP {
|
||||
host
|
||||
username
|
||||
port
|
||||
secure
|
||||
password
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ export const useImapSmtpCaldavConnectionForm = ({
|
||||
defaultValues: {
|
||||
handle: '',
|
||||
IMAP: { host: '', port: 993, password: '', secure: true },
|
||||
SMTP: { host: '', port: 587, password: '', secure: true },
|
||||
SMTP: { host: '', username: '', port: 587, password: '', secure: true },
|
||||
CALDAV: {
|
||||
host: '',
|
||||
port: 443,
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@ export class ImapSmtpCaldavService {
|
||||
host: params.host,
|
||||
port: params.port,
|
||||
auth: {
|
||||
user: handle,
|
||||
user: params.username ?? handle,
|
||||
pass: params.password,
|
||||
},
|
||||
tls: {
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ export class SmtpClientProvider {
|
||||
host: smtpParams.host,
|
||||
port: smtpParams.port,
|
||||
auth: {
|
||||
user: connectedAccount.handle,
|
||||
user: smtpParams.username ?? connectedAccount.handle,
|
||||
pass: smtpParams.password,
|
||||
},
|
||||
tls: {
|
||||
|
||||
Reference in New Issue
Block a user