Skip to content
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

587 "smtp" false #1

Open
supercentenarian opened this issue Apr 19, 2011 · 0 comments
Open

587 "smtp" false #1

supercentenarian opened this issue Apr 19, 2011 · 0 comments

Comments

@supercentenarian
Copy link

(defn properties [username host port ssl](let [properties %28Properties.%29]
%28doto properties
%28.put "mail.smtp.host" host)
(.put "mail.smtp.user" username)
(.put "mail.smtp.port" port)
(.put "mail.smtp.socketFactory.port" port)
(.put "mail.smtp.auth" "true")
(.put "mail.smtp.starttls.enable" "true"))
(when ssl
(doto properties ..

I can't use 465 cuz it's blocked. I added this line (.put "mail.smtp.starttls.enable" "true")
and it works for this example:
(with-session "[email protected]" "secret" "smtp.gmail.com" 587 "smtp" false
(send-email (text-email ["[email protected]"] "subject" "body")))

I don't know why, all I know is that's how I got the code to work. Thanks for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant