[ https://issues.apache.org/activemq/browse/CAMEL-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Gardner updated CAMEL-1507: -------------------------------- Attachment: camel-mail-test2.zip This contains a very simple maven project that has a main method that will send out an email. It's definitely NOT intended for inclusion as-is (but I'll check the box since you can include anything in it if you really WANT to) I just modified the default archetype and built a simple attachment processor that will attach the logo.gif to the message and send out the email. If you want to use this, it might save you the 5 minutes it would take you to do something similar to test how this works with sending out actual emails to test it. (It will work with gmail accounts that allow SMTP - just modify the YOURNAMEHERE and YOURPASSWORDHERE appropriately... I almost submitted it with my name and password in plaintext - which would have been rather dumb :) ) > Allow sending multipart/alternative MIME messages with both a plain-text and > text/html body, and allow sending images inline > ---------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-1507 > URL: https://issues.apache.org/activemq/browse/CAMEL-1507 > Project: Apache Camel > Issue Type: Improvement > Components: camel-mail > Affects Versions: 2.0-M1 > Reporter: Ryan Gardner > Assignee: Willem Jiang > Attachments: camel-mail-test2.zip, mulitpartAlternativePatch.patch > > > To send a multipart/alternative email you have to follow a pretty specific > course. > This adds a property (which is poorly named in this patch) to the > MailConfiguration that names the header that contains the plaintext version > of the email, and adds a property where you can embed images inline. If an > attachment has a filename starting with "cid:" then this will add the > "Content-ID" header to that multipart body - which will allow the email > client to put the image in the appropriate place when it is viewed. (i.e. the > html email has something like <image src="cid:0001" /> and the attachment is > named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" > it will put it in the right spot) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.