-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README #21
Comments
It worked for me, though I set up an app-specific password so I didn't need to toss around my real password. I suspect Google may bounce rapidly repeating connections as suspicious. |
You must be running it in your own app context then (sorry, I'm user clojens btw). If you import symbols e.g. into the namespace Your project has a var named |
Hey. This is probably just an over sight on my part when writing the README. I'll take a look. The best way to deal with this would be to alias the library (which I generally prefer anyway) Example(ns your-namespace
(:require [clojure-mail.core :as mail]))
(def store (mail/gen-store "user@gmail.com" "password"))
Sorry for any confusion. I will have to update the documentation when I get a moment. Does that make sense? Thanks Owain |
Thank you. I know cargo-cult coding is bad but it really isn't if you basically grok what you are doing. Unless it is a very elaborate procedure, which needs to have parts truncated, I'd expect a 'quick start' to work out of the box... Hopefully not using One more addition might be to highlight that one already needs to have run through part of the OAuth2 process before you can use this. Meaning: you need to have a This actually posed a problem for me, obtaining a token without user interference but thats a different story I solved using clj-webdriver clicking me through user consent and then fetching header callback param auth code sent by Google in response to the authorization request. Not the best but at least it works. Google OAuth2 service accounts need some lovin' in the documentation - extremely vague if and how it works with Gmail. Anyway, cheers. Rob |
There are several issues when I try to run this project. For one, a while now, I haven't been able to connect to Google GMail via IMAP. I had to resort to OAuth2 Java service api libs for my gmail connection. Same here, I get bounced with invalid credentials (they aren't I'm sure and have been using them non-stop these two days with webdriver to automate oauth2 consent click.
Second thing is that the readme, at least in my case again, naming a var
def store
while already having a name like that in your project results in conflicts. So I renamed tostore-1
before I could get invalid credentials anyway.Third, inbox doesn't work but I guess this is due to credentials...
Anyway my question really should be: does anyone have this working without fully disabling gmail account security (less secure apps) or is that always a result that comes with this approach...
The text was updated successfully, but these errors were encountered: