This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-23
Channels
- # announcements (3)
- # babashka (68)
- # beginners (297)
- # calva (13)
- # cider (4)
- # clj-kondo (8)
- # cljs-dev (10)
- # cljsrn (26)
- # clojure (100)
- # clojure-europe (4)
- # clojure-germany (1)
- # clojure-italy (9)
- # clojure-nl (5)
- # clojure-spec (9)
- # clojure-uk (41)
- # clojurescript (69)
- # conjure (70)
- # cursive (44)
- # data-science (20)
- # datascript (2)
- # datomic (55)
- # emacs (1)
- # exercism (3)
- # graalvm (2)
- # kaocha (11)
- # leiningen (6)
- # meander (9)
- # mental-health (1)
- # off-topic (73)
- # pathom (6)
- # pedestal (1)
- # re-frame (3)
- # reagent (52)
- # reitit (8)
- # rum (39)
- # shadow-cljs (152)
- # spacemacs (10)
- # tools-deps (28)
- # xtdb (5)
morning
The difference between Kotlin and Groovy is that the former doesn't make you want to tear your hair out
I wondered how long after the mention of kotlin conor would appear
Morning.
write a lambda that does it for you then call that over HTTP?
that's probably what I'd do tbh
cos then you can use the python/JS SDKs which are the ones aws seems to care about maintaining the most
oh yeah I mean you can obviously call it directly
I just mean it depends on how flexible you wanna be/ how you wanna call it; the most generic way to abstract it is probably logic you control yourself via a lamda nano service
thoooooooooooooooooooo that could well be overkill
(ses/send-email creds :destination {:to-addresses ["
The cognitect apis are quite low-level, it exposes the RawEmail API, but then you have to construct a byte body etc.. etc...
not for simple text-only emails (like your example)
I've never tackled attachements though
meh I would post a code snippet, but I'm booted into Windows and I don't have access to t'other dev env
something like this...
(def aws-connection
(delay (aws/client {:api :email
:version "2012-06-01"
:region :eu-west-1
:credentials-provider (credentials/basic-credentials-provider
{:access-key-id "" :secret-access-key ""})})))
(defn send-email-over-ses
[awscli {:keys [from to subject body]}]
(aws/invoke awscli
{:op :SendEmail
:request {:Source from
:Destination {:ToAddresses to}
:Message {:Subject {:Data subject}
:Body {:Text {:Data body}}}}}))
where
(:require [cognitect.aws.client.api :as aws]
[cognitect.aws.credentials :as credentials]
But I never opened the can of worms to make attachments work