Updated email invitation logic to include sender details in the From … (#8858)
Updated email invitation logic to include sender details in the From field. Please feel free to provide comments so that we can make adjustments as early as possible if needed Fixes #7001 --------- Co-authored-by: Your Name <your@email.address> Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
committed by
GitHub
parent
078e23154a
commit
02f34211b5
@ -18,6 +18,7 @@ type SendInviteLinkEmailProps = {
|
||||
sender: {
|
||||
email: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
};
|
||||
serverUrl?: string;
|
||||
};
|
||||
@ -29,13 +30,14 @@ export const SendInviteLinkEmail = ({
|
||||
serverUrl,
|
||||
}: SendInviteLinkEmailProps) => {
|
||||
const workspaceLogo = getImageAbsoluteURI(workspace.logo, serverUrl);
|
||||
|
||||
return (
|
||||
<BaseEmail width={333}>
|
||||
<Title value="Join your team on Twenty" />
|
||||
<MainText>
|
||||
{capitalize(sender.firstName)} (
|
||||
<Link
|
||||
href={sender.email}
|
||||
href={`mailto:${sender.email}`}
|
||||
value={sender.email}
|
||||
color={emailTheme.font.colors.blue}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user