Skip to content

Commit

Permalink
Merge pull request #6 from Racks-Labs/develop
Browse files Browse the repository at this point in the history
fix "update email"
  • Loading branch information
yond1994 authored Jun 7, 2024
2 parents 9a99464 + d8ac83c commit bed9be2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/email/components/general/EmailFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react";
export const EmailFooter = () => {
return (
<Text>
Have a great day!<br></br> The Formbricks Team!
¡Que tengas un gran día!<br></br> ¡El equipo de NOGUÉS ABOGADOS!
</Text>
);
};
6 changes: 3 additions & 3 deletions packages/email/components/invite/InviteEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ interface InviteEmailProps {
export const InviteEmail = ({ inviteeName, inviterName, verifyLink }: InviteEmailProps) => {
return (
<Container>
<Text>Hey {inviteeName},</Text>
<Text>Hola {inviteeName},</Text>
<Text>
Your colleague {inviterName} invited you to join them at Formbricks. To accept the invitation, please
click the link below:
Tu Compañero {inviterName} te invitó a unirte a ellos. Para aceptar la invitación, por favor haga
click en el enlace a continuación:
</Text>
<EmailButton label="Join organization" href={verifyLink} />
<EmailFooter />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const NotificationFooter = ({ environmentId }: NotificatonFooterProps) =>
<Tailwind>
<Container className="w-full">
<Text className="mb-0 pt-4 font-medium">All the best,</Text>
<Text className="mt-0">The Formbricks Team 🤍</Text>
<Text className="mt-0">The NOGUÉS ABOGADOS Team 🤍</Text>
<Container
className="mt-0 w-full rounded-md bg-slate-100 px-4 text-center text-xs leading-5"
style={{ fontStyle: "italic" }}>
Expand Down
20 changes: 10 additions & 10 deletions packages/email/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const sendEmail = async (emailData: sendEmailData) => {
debug: DEBUG,
});
const emailDefaults = {
from: `Formbricks <${MAIL_FROM || "noreply@formbricks.com"}>`,
from: `NoguesAbogados <${MAIL_FROM || "noreply@noguesabogados.com"}>`,
};
await transporter.sendMail({ ...emailDefaults, ...emailData });
} else {
Expand All @@ -101,7 +101,7 @@ export const sendVerificationEmail = async (user: TEmailUser) => {
)}`;
await sendEmail({
to: user.email,
subject: "Please verify your email to use Formbricks",
subject: "Por favor verifique su correo electrónico",
html: render(EmailTemplate({ content: VerificationEmail({ verificationRequestLink, verifyLink }) })),
});
};
Expand All @@ -113,15 +113,15 @@ export const sendForgotPasswordEmail = async (user: TEmailUser) => {
const verifyLink = `${WEBAPP_URL}/auth/forgot-password/reset?token=${encodeURIComponent(token)}`;
await sendEmail({
to: user.email,
subject: "Reset your Formbricks password",
subject: "Restablece tu contraseña",
html: render(EmailTemplate({ content: ForgotPasswordEmail({ verifyLink }) })),
});
};

export const sendPasswordResetNotifyEmail = async (user: TEmailUser) => {
await sendEmail({
to: user.email,
subject: "Your Formbricks password has been changed",
subject: "Tu contraseña ha sido cambiada",
html: render(EmailTemplate({ content: PasswordResetNotifyEmail() })),
});
};
Expand All @@ -143,15 +143,15 @@ export const sendInviteMemberEmail = async (
if (isOnboardingInvite && inviteMessage) {
await sendEmail({
to: email,
subject: `${inviterName} needs a hand setting up Formbricks. Can you help out?`,
subject: `${inviterName} Necesita ayuda para configurar. ¿Puedes ayudar?`,
html: render(
EmailTemplate({ content: OnboardingInviteEmail({ verifyLink, inviteMessage, inviterName }) })
),
});
} else {
await sendEmail({
to: email,
subject: `You're invited to collaborate on Formbricks!`,
subject: `¡Estás invitada a colaborar!`,
html: render(EmailTemplate({ content: InviteEmail({ inviteeName, inviterName, verifyLink }) })),
});
}
Expand All @@ -160,7 +160,7 @@ export const sendInviteMemberEmail = async (
export const sendInviteAcceptedEmail = async (inviterName: string, inviteeName: string, email: string) => {
await sendEmail({
to: email,
subject: `You've got a new organization member!`,
subject: `¡Tienes una nueva miembro de la organización!`,
html: render(EmailTemplate({ content: InviteAcceptedEmail({ inviteeName, inviterName }) })),
});
};
Expand All @@ -178,8 +178,8 @@ export const sendResponseFinishedEmail = async (
await sendEmail({
to: email,
subject: personEmail
? `${personEmail} just completed your ${survey.name} survey ✅`
: `A response for ${survey.name} was completed ✅`,
? `${personEmail} Acabas de completar tu ${survey.name} encuesta ✅`
: `una respuesta para ${survey.name} Se completó ✅`,
replyTo: personEmail?.toString() || MAIL_FROM,
html: render(
EmailTemplate({
Expand Down Expand Up @@ -223,7 +223,7 @@ export const sendLinkSurveyToVerifiedEmail = async (data: LinkSurveyEmailData) =
};
await sendEmail({
to: data.email,
subject: "Your Formbricks Survey",
subject: "Su encuesta",
html: render(EmailTemplate({ content: LinkSurveyEmail({ surveyData, getSurveyLink }) })),
});
};
Expand Down

0 comments on commit bed9be2

Please sign in to comment.