Skip to content

Commit

Permalink
feat: email credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
tassyla committed Feb 14, 2025
1 parent 5ca7785 commit cdeaf96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/modules/users/services/CreateAppointmentService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default class CreateAppointmentService {
sgMail.setApiKey(process.env.SENDGRID_API_KEY as string);

const msg = {
to: "lucas.aguiar@polijunior.com.br",
from: 'tassyla.lima@polijunior.com.br',
to: "dr.joaosiufi@gmail.com",
from: 'dr.joaosiufi@gmail.com',
subject: 'Apogeo | Solicitação de consulta médica',
text: `João, o usuário ${user.name} solicitou uma consulta médica. <br><br>Pedido realizado em <strong>${formattedDate}</strong> às <strong>${formattedTime}</strong>.<br><br><strong>Informações do usuário</strong><br>Nome: ${user.name}<br>Email: ${user.email}<br>Telefone: ${user.phone}<br>Idioma: ${user.language}<br>${user.gender != null ? "Gênero: "+ user.gender + "<br>": ""}${user.birthdate ? "Data de Nascimento: " + formattedBirthdate + "<br>" : ""}`,
html: `João, o usuário ${user.name} solicitou uma consulta médica. <br><br>Pedido realizado em <strong>${formattedDate}</strong> às <strong>${formattedTime}</strong>.<br><br><strong>Informações do usuário</strong><br>Nome: ${user.name}<br>Email: ${user.email}<br>Telefone: ${user.phone}<br>Idioma: ${user.language}<br>${user.gender != null ? "Gênero: "+ user.gender + "<br>": ""}${user.birthdate ? "Data de Nascimento: " + formattedBirthdate + "<br>" : ""}`,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/users/services/SendPinToUserEmailService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class SendPinToUserEmailService {
sgMail.setApiKey(process.env.SENDGRID_API_KEY as string);
const msg = {
to: email,
from: 'tassyla.lima@polijunior.com.br',
from: 'dr.joaosiufi@gmail.com',
subject: 'Apogeo | Recuperação de senha',
text: `${user.name}, seu pin para recuperação de senha é: ${pin}. O processo de recuperação expira em ${expiration} minutos.`,
html: `${user.name}, seu pin para recuperação de senha é: <strong>${pin}</strong>. O processo de recuperação expira em ${expiration} minutos.`,
Expand Down

0 comments on commit cdeaf96

Please sign in to comment.