{"id":406,"date":"2016-01-27T13:54:43","date_gmt":"2016-01-27T12:54:43","guid":{"rendered":"http:\/\/www.ume.li\/blog\/?p=406"},"modified":"2016-01-27T13:54:43","modified_gmt":"2016-01-27T12:54:43","slug":"nice-html-newsletter-from-a-domino-server","status":"publish","type":"post","link":"https:\/\/www.ume.li\/blog\/2016\/01\/27\/nice-html-newsletter-from-a-domino-server\/","title":{"rendered":"Nice HTML Newsletter from a Domino Server"},"content":{"rendered":"<p>Requirement 1: Marketing wants to send a newsletter.<\/p>\n<p>Solution: Create a new ID and a new Mailbox for marketing, teach them how they can use the mailbox. Solved.<\/p>\n<p>Requirement 2: Marketing wants to send newsletters to a huge list of customers.<\/p>\n<p>Solution: Improve the mailbox, so stationaries can be sent to a list of email addresses, in blocks of 100 each, so the provider does not mark us as spammers. Solved.<\/p>\n<p>Requirement 3: Marketing wants to send nice looking newsletters to a huge list of customers.<\/p>\n<p>Solution: Improve the agent, so it can send HTML files as MIME Mails using the NotesMime* classes. Solved.<\/p>\n<p>Requirement 4: Marketing wants to send nice looking newsletters with pictures to a huge list of customers.<\/p>\n<p>Analyisis: HTML from Marketing contains links to pictures on the internet\/intranet. The script from requirement 3 would have to parse the html file, download all the images and replace the img src&#8217;s with the right cid&#8217;s and embedded these images in the mail.<\/p>\n<p>Solution: Implementing <a href=\"https:\/\/commons.apache.org\/proper\/commons-email\/\" target=\"_blank\">Apache Commons Email Client<\/a>\u00a0the ImageHtmlEmail class does all the parsing, downloading and img tag updateing.<br \/>\nTo run the agent on the server 2 jar files (javax.mail.jar, commons-email-1.4.jar) needs to be placed in the \/jvm\/lib\/ext\/ folder (otherwise you might have to fiddle around with the java.pol file) because the email client stores the images in the local temp directory. Restart the server\/client so the jar&#8217;s get loaded.<\/p>\n<p>The SMTP task needs to running and properly configured to allow connections.<\/p>\n<pre><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirement 1: Marketing wants to send a newsletter. Solution: Create a new ID and a new Mailbox for marketing, teach<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-406","post","type-post","status-publish","format-standard","hentry","category-domino"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/comments?post=406"}],"version-history":[{"count":1,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/406\/revisions"}],"predecessor-version":[{"id":407,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/406\/revisions\/407"}],"wp:attachment":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/media?parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/categories?post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/tags?post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}