I am using Postmark for sending emails and want to embed image into html_body. I am able to think of two ways to do this.
- Get the html body, search for image tags in it. Extract the src of image tags and create an attachement with content id and pass it to postmark.
- Create an Multipart MIME message and send it into postmark html_body (but not sure postmark will be able to handle this).
Please suggest me you can think of any other way. And also let me know whether point 2 will work out.