Skip to content

Commit

Permalink
🚸 (sendEmail) Better result logging
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Oct 4, 2022
1 parent 471ffe8 commit 7ca97d4
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"google-auth-library": "8.5.2",
"models": "workspace:*",
"next-transpile-modules": "9.0.0",
"node-fetch": "^3.2.10",
"papaparse": "5.3.2",
"typescript": "4.8.4",
"uglify-js": "3.17.2",
Expand Down
13 changes: 11 additions & 2 deletions apps/viewer/pages/api/typebots/[typebotId]/integrations/email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,24 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
}
try {
const info = await transporter.sendMail(email)
await saveSuccessLog(resultId, 'Email successfully sent')
await saveSuccessLog(resultId, 'Email successfully sent', {
transportConfig: {
...transportConfig,
auth: { user: transportConfig.auth.user, pass: '******' },
},
email,
})
return res.status(200).send({
message: 'Email sent!',
info,
previewUrl: getTestMessageUrl(info),
})
} catch (err) {
await saveErrorLog(resultId, 'Email not sent', {
transportConfig,
transportConfig: {
...transportConfig,
auth: { user: transportConfig.auth.user, pass: '******' },
},
email,
error: err,
})
Expand Down
41 changes: 41 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 comments on commit 7ca97d4

@vercel
Copy link

@vercel vercel bot commented on 7ca97d4 Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7ca97d4 Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs-git-main-typebot-io.vercel.app
docs-typebot-io.vercel.app
docs.typebot.io

@vercel
Copy link

@vercel vercel bot commented on 7ca97d4 Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7ca97d4 Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viewer-v2-alpha – ./apps/viewer

247987.com
yobot.me
bot.aws.bj
8jours.top
bot.aipr.kr
minipost.uk
ns8.vn
sat.cr8.ai
finplex.be
biiapp.com
vhpage.cr8.ai
bt.id8rs.com
bot.krdfy.com
am.nigerias.io
an.nigerias.io
bot.enreso.org
ar.nigerias.io
bot.lalmon.com
ticketfute.com
apo.nigerias.io
bot.ageenda.com
aso.nigerias.io
bot.artiweb.app
apr.nigerias.io
bot.tc-mail.com
chat.sureb4.com
eventhub.com.au
typebot.aloe.do
sakuranembro.it
bot.piccinato.co
games.klujo.com
bot.upfunnel.art
clo.closeer.work
botc.ceox.com.br
faqs.nigerias.io
feedback.ofx.one
kw.wpwakanda.com
form.syncwin.com
typebot.aloe.bot
myrentalhost.com
stan.vselise.com
voicehelp.cr8.ai
app.chatforms.net
bot.agfunnel.tech
bot.maitempah.com
bot.hostnation.de
bot.phuonghub.com
bot.reviewzer.com
gentleman-shop.fr
cares.urlabout.me
fmm.wpwakanda.com
k1.kandabrand.com
lb.ticketfute.com
ov1.wpwakanda.com
ov2.wpwakanda.com
1988.bouclidom.com
ov3.wpwakanda.com
andreimayer.com.br
bot.megafox.com.br
bots.robomotion.io
dicanatural.online
bot.neferlopez.com
goalsettingbot.com
cadu.uninta.edu.br
positivobra.com.br
this-is-a-test.com
survey.digienge.io
zap.techadviser.in
carsalesenquiry.com
bot.eventhub.com.au
bot.digitalbled.com
demo.botscientis.us
kbsub.wpwakanda.com
forms.webisharp.com
live.botscientis.us
mentoria.omelhor.vc
order.maitempah.com
nutrisamirbayde.com
quest.wpwakanda.com
bot.ansuraniphone.my
bium.gratirabbit.com
typebot.stillio.com
test.botscientis.us
bot.cotemeuplano.com
chat.hayurihijab.com
chatbee.agfunnel.com
click.sevenoways.com
connect.growthguy.in
get.freebotoffer.xyz
kuiz.sistemniaga.com
offer.botscientis.us
tenorioadvogados.com
talkbot.agfunnel.com
uppity.wpwakanda.com
abutton.wpwakanda.com
bbutton.wpwakanda.com
aidigitalmarketing.kr
bot.incusservices.com
bot.meuesocial.com.br
cdd.searchcube.com.sg

@vercel
Copy link

@vercel vercel bot commented on 7ca97d4 Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

app.typebot.io
builder-v2-typebot-io.vercel.app
builder-v2-git-main-typebot-io.vercel.app

Please sign in to comment.