This file contains hidden or 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
| import Swoosh.Email | |
| new() | |
| |> to("peter@example.com") | |
| |> from({"Jarvis", "jarvis@example.com"}) | |
| |> subject("Invoice May") | |
| |> text_body("Here is the invoice for your superhero services in May.") | |
| |> attachment("/Users/jarvis/invoice-peter-may.pdf") |
This file contains hidden or 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
| import Swoosh.Email | |
| upload_invoice = %Plug.Upload{ | |
| path: "/tmp/plug/DEFfF014AaA01F", | |
| content_type: "", | |
| filename: "invoice-peter-may.pdf" | |
| } | |
| new() | |
| |> to("peter@example.com") |
OlderNewer