Skip to content

Commit

Permalink
Merge pull request #16 from mkreis/fix/example
Browse files Browse the repository at this point in the history
Fix example code for inline image
  • Loading branch information
liquidz authored Jun 28, 2022
2 parents f9b10b8 + f2554f0 commit 3a5499a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Connection with user authentication::
;; => {:result :success, :code 250, :message "250 OK\n"}
----

==== Inline image
==== Inline image (Multipart/related)

[source,clojure]
----
Expand All @@ -158,6 +158,7 @@ Connection with user authentication::
(tarayo/send! conn {:from "[email protected]"
:to "[email protected]"
:subject "hello"
:multipart "related"
:body [{:content (str "<img src=\"cid:" content-id "\" /> world") :content-type "text/html"}
;; containing id will be handled as "inline attachment file"
{:content (io/file "test/resources/image.png") :id content-id}]})))
Expand Down

0 comments on commit 3a5499a

Please sign in to comment.