Skip to content

Releases: medhiwidjaja/bamboo_mailjet

Bug fix: inline_attachments tag

08 Nov 05:13
Compare
Choose a tag to compare
v0.1.1-beta.1

Fix bug inline_attachments tag

v0.1.1

08 Nov 06:13
Compare
Choose a tag to compare

This version is an update for the following:

  • Support for Bamboo v2.0 (deliver/2 error handling)
  • Support for Mailjet inlined attachments. Below is a fragment from the test code to illustrate the use of the feature:
email =
      new_email(
        from: {"From", "from@foo.com"},
        subject: "My Subject",
        text_body: "TEXT BODY",
        html_body: "HTML BODY"
      )
      |> Bamboo.Email.put_header("Reply-To", "reply@foo.com")
      |> Bamboo.Email.put_attachment(%Bamboo.Attachment{
        content_type: "image/png",
        content_id: "my_image.png",
        filename: "my_image.png",
        data:
          <<137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 1, 0, 0, 0, 1,
            8, 6, 0, 0, 0, 31, 21, 196, 137, 0, 0, 0, 13, 73, 68, 65, 84, 120, 218, 99, 252, 207,
            192, 80, 15, 0, 4, 133, 1, 128, 132, 169, 140, 33, 0, 0, 0, 0, 73, 69, 78, 68, 174,
            66, 96, 130>>
      })

MailjetAdapter.deliver(email, @config)

v0.1.1

08 Nov 04:46
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release

Support for Bamboo v2.0
Support for inlined attachments