unownone / Tweety.py

A End to End no-code Twitter Bot Api built on top of tweepy and fastapi
MIT License
4 stars 4 forks source link

Emails not Working #3

Open unownone opened 1 year ago

unownone commented 1 year ago

The emailing system after the update has stopped working.

Try to see what is the reason and fix it if possible. We send email for verifications and job notifications. All the twitter like/comment jobs are done by sending emails to the registered user.

Suggestions:

Emailing seems to be not working because of it not being integrated properly into the function.

RohitShelke10 commented 1 year ago

I'd like to work on this

unownone commented 1 year ago

@RohitShelkeBot Great to here from you! I would love it! Let me know if anything is required.

PS: Make sure to make the PRs on or after 1st october.

RohitShelke10 commented 1 year ago

@unownone Thanks, assign this task to me as well please

unownone commented 1 year ago

@RohitShelkeBot Done!

RohitShelke10 commented 1 year ago

@unownone I need env values to start server and debug email

unownone commented 1 year ago

@RohitShelkeBot I think oyu have to generate those yourself. You can set up a local mongodb/cloud atlas or even a docker mongodb to get started. There's enough documentation out there too!

RohitShelke10 commented 1 year ago

@unownone Okay

RohitShelke10 commented 1 year ago

@unownone What about the email host credentials?

unownone commented 1 year ago

@unownone What about the email host credentials?

Different email providers provide different ways to work with SMTP servers. You'll be using a SMTP server , go through some Libraries that deal with emailing , if the project already has a emailing library then go through its documentation .

For credentials , if it's Google , search how to generate Google SMTP creds? Same for Microsoft (outlook/Hotmail)

RohitShelke10 commented 1 year ago

The issue is solved

RohitShelke10 commented 1 year ago

@unownone Why is there a send_email_background? The tweetify function is anyways run in the background completely. This was causing an error

unownone commented 1 year ago

@unownone Why is there a send_email_background? The tweetify function is anyways run in the background completely. This was causing an error

Hey , tweetify function does need to be running in background as it is a exhaustive process and we don't really know it worked until it ends . So that's why we need emailing . You can use blocking emails too . There's send_email_background as an no blocking email , ie i won't really be waiting for it to finish and move on to other work.

RohitShelke10 commented 1 year ago

@unownone I'm getting an error with the existing logic

unownone commented 1 year ago

@unownone I'm getting an error with the existing logic

Could you provide what error it is ? What type of error and what is the error output? A little bit more information would be really good!

RohitShelke10 commented 1 year ago

@unownone Any way we can connect elsewhere where we can discuss in a better manner