baptisteArno / typebot.io

💬 Typebot is a powerful chatbot builder that you can self-host.
https://typebot.io
Other
7.08k stars 1.93k forks source link

Emails are not getting triggered in the flow #660

Closed cherrycharan closed 1 year ago

cherrycharan commented 1 year ago

When i invite a user emails are getting triggered , but when in use the email block in the flow emails are not getting triggered . how to debug this ? checked docker logs found nothing

baptisteArno commented 1 year ago

Is there anything in the result logs? (https://docs.typebot.io/editor/results#logs)

cherrycharan commented 1 year ago

{ "error": { "errno": -111, "code": "ESOCKET", "syscall": "connect", "address": "127.0.0.1", "port": 587, "command": "CONN" }, "transportConfig": { "port": null, "auth": { "pass": "******" } }, "email": { "cc": [], "bcc": [], "to": [ "myemail@gmail.com" ], "subject": "Test Email", "text": "This is to test " } }

baptisteArno commented 1 year ago

Can you tell us what's your SMTP config?

cherrycharan commented 1 year ago

typebot-builder: environment:

baptisteArno commented 1 year ago

The NEXT_PUBLIC_SMTP_FROM variable should have this shape: 'Type Bot' <email@email.in>

cherrycharan commented 1 year ago

@baptisteArno Tried this as well still the same error

baptisteArno commented 1 year ago

Are you sure you are using the default from email?

CleanShot 2023-08-03 at 07 47 17@2x

If you can be a bit more talkative, i.e. actively trying to debug with me, it would help a lot! We need as much info as possible

cherrycharan commented 1 year ago

image

I am using default email only

baptisteArno commented 1 year ago

Can I have access to your tool and try it out myself? If you'd like to keep the details private, you can send a message to baptiste@typebot.io

luizeof commented 1 year ago

Hello @baptisteArno ... is there a possibility to consider including at least 1 email provider through API?

baptisteArno commented 1 year ago

Oh right, I'm dumb. You probably forgot to add the STMP credentials to the viewer environment (https://docs.typebot.io/self-hosting/configuration/viewer#emails-notifications)

cherrycharan commented 1 year ago

@baptisteArno I tried using the SMTP Creds in viewer env , now i am getting a new error as below

{ "error": { "code": "EMESSAGE", "response": "553 Relaying disallowed as undefined@localhost", "responseCode": 553, "command": "DATA" },

baptisteArno commented 1 year ago

This is a ZohoMail issue. I can't really help more with that!