7417 workflows i can send emails using the email account (#7431)
- update `send-email.workflow-action.ts` so it send email via the google sdk - remove useless `workflow-action.email.ts` - add `send` authorization to google api scopes - update the front workflow email step form to provide a `connectedAccountId` from the available connected accounts - update the permissions of connected accounts: ask users to reconnect when selecting missing send permission 
This commit is contained in:
@ -1,29 +0,0 @@
|
||||
import { BaseEmail } from 'src/components/BaseEmail';
|
||||
import { Title } from 'src/components/Title';
|
||||
import { CallToAction } from 'src/components/CallToAction';
|
||||
|
||||
type WorkflowActionEmailProps = {
|
||||
dangerousHTML?: string;
|
||||
title?: string;
|
||||
callToAction?: {
|
||||
value: string;
|
||||
href: string;
|
||||
};
|
||||
};
|
||||
export const WorkflowActionEmail = ({
|
||||
dangerousHTML,
|
||||
title,
|
||||
callToAction,
|
||||
}: WorkflowActionEmailProps) => {
|
||||
return (
|
||||
<BaseEmail>
|
||||
{title && <Title value={title} />}
|
||||
{dangerousHTML && (
|
||||
<div dangerouslySetInnerHTML={{ __html: dangerousHTML }} />
|
||||
)}
|
||||
{callToAction && (
|
||||
<CallToAction value={callToAction.value} href={callToAction.href} />
|
||||
)}
|
||||
</BaseEmail>
|
||||
);
|
||||
};
|
||||
@ -3,4 +3,3 @@ export * from './emails/delete-inactive-workspaces.email';
|
||||
export * from './emails/password-reset-link.email';
|
||||
export * from './emails/password-update-notify.email';
|
||||
export * from './emails/send-invite-link.email';
|
||||
export * from './emails/workflow-action.email';
|
||||
|
||||
Reference in New Issue
Block a user