ritwik12 / Virtual-Assistant

A linux based Virtual assistant on Artificial Intelligence in C
GNU General Public License v3.0
128 stars 95 forks source link

Sending emails using gmail #53

Closed GaelleMarais closed 5 years ago

GaelleMarais commented 5 years ago

Hi. @LilyaMel and I have been working on including a way to send emails using gmail. ( cf issue #18 )

I am using the OpenSSL package (libssl) to create a secure socket, wich is mandatory for communicating with the gmail server:smtp.gmail.com

In order to compile the project you need to add -lssl -crypto -lto gcc. Consequently, the full command to compile the project is gcc main.c $(pkg-config --libs --cflags libcurl) -lssl -lcrypto -l json-c -std=gnu11

I added the new command in the README.md file and in the .travis.ymlfile. You also need to installopenssl (ubuntu) orlibssl(fedora), command installations are on the README.md file.

What we have modified:

What's new :

Note: We are currently working on a way to read emails and we will make another PR for that.

I hope our work will interest you and that you will accept this PR. If you have any questions I'll respond as soon as possible. Thank you

ritwik12 commented 5 years ago

@GaelleMarais @LilyaMel Hey, this looks really great and shows lots of your hardwork. Thanks to both of you for sending this PR. As this PR is really big so we need some time to review this. Please allow us some time.

riya-17 commented 5 years ago

Hey @GaelleMarais and @LilyaMel , your PR looks really great, I really appreciate your work. Thanks for this PR.

riya-17 commented 5 years ago

Hey @ritwik12 I think this PR is good to go

ritwik12 commented 5 years ago

Sending` email ... Error ✗ Please verify your email adress and password.

Gmail isn't allowing to add an email Id. I am getting above error, Please check

ritwik12 commented 5 years ago

@GaelleMarais Please check

ritwik12 commented 5 years ago

@GaelleMarais Code looks good and works fine. Appreciate your hard work for this, Thanks a lot. Please check above issues and errors.

GaelleMarais commented 5 years ago

Hello, thank you for your reviews. I have made the requested changes.

@ritwik12 Have you activated the parameter "Allow access to less secure apps" in your google account ? If it is not activated, only official applications made by Google can access your gmail account. I explained how to do it in the README file.

It you have activated it and it still doesn't work, I have to know if the problem comes from your gmail account or your device. Can you try again with this account I created especially for testing purposes :

id: mangabountynaia@gmail.com
pwd: MANGABOUNTYNAIA
ritwik12 commented 5 years ago

@GaelleMarais I have tried using the account given by you. It isn't working. Let me recheck.

GaelleMarais commented 5 years ago

In file ssl.c can you uncomment all lignes marked with DEBUG and show me the error messages?

GaelleMarais commented 5 years ago

@ritwik12 Any news ?

ritwik12 commented 5 years ago

@GaelleMarais Sorry, I got busy. Let me check

ritwik12 commented 5 years ago

@GaelleMarais Code is great. Works well. Thanks for contributing such a great feature.

ritwik12 commented 5 years ago

@GaelleMarais We need one more section in README for Email feature to explain it's working with screenshot just like we have for all other features. Would you like to do that?

GaelleMarais commented 5 years ago

Thank you very much. Yes I can do it

ritwik12 commented 5 years ago

@GaelleMarais Also, feel free to connect and contribute in future. Any help needed or question. Let me know

ritwik12 commented 3 years ago

@all-contributors please add @GaelleMarais for code

allcontributors[bot] commented 3 years ago

@ritwik12

I've put up a pull request to add @GaelleMarais! :tada:

ritwik12 commented 3 years ago

@all-contributors please add @LilyaMel for code and doc

allcontributors[bot] commented 3 years ago

@ritwik12

I've put up a pull request to add @LilyaMel! :tada: