-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from mkreis/fix/example
Fix example code for inline image
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,7 @@ Connection with user authentication:: | |
;; => {:result :success, :code 250, :message "250 OK\n"} | ||
---- | ||
|
||
==== Inline image | ||
==== Inline image (Multipart/related) | ||
|
||
[source,clojure] | ||
---- | ||
|
@@ -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}]}))) | ||
|