Snipplrhttp://snipplr.com/tags/attachments
Recent snippets posted on Snipplr.comen-usMon, 03 Aug 2015 06:32:58 GMT(Java) Load Existing Email Message and Modify its Contents inside Android Apps - johansonkatherinehttp://snipplr.com/view/74654/load-existing-email-message-and-modify-its-contents-inside-android-apps/
This technical tip shows how to load any existing email message and modify its contents before saving it back to disk using Aspose.Email for Android API. To do this successfully, specify the MessageFormat when loading the email message from disk. In addition, it is important to specify the correct MailMessageSaveType when saving the message back to disk.
To update and save an email, the following steps can be used:
1. Create an instance of the MailMessage class.
2. Load an existing message using the MailMessage class' load() method and specifying the MessageFormat of the existing message.
3. Get the subject using getSubject().
4. After modifying the subject, set it again using the setSubject() method.
5. Get the body using getHtmlBody().
6. AFter modifying the body, set it using the setHtmlBody() method .
7. Create an instance of the MailAddressCollection class.
8. Get the recipients from the TO field into a MailAddressCollection object using the getTo() method exposed by the MailMessage class.
9. Add or remove recipients using the add() and remove() methods exposed by the MailAddressCollection class.
10. Get the recipients from the CC field into a MailAddressCollection object using the getCC() method exposed by MailMessage class.
11. Add or remove recipients using the add() and remove() methods exposed by the MailAddressCollection class.
12. Call the save() method exposed by the MailMessage class, specifying the correct MailMessageSaveType to save the message file to the disk in MSG format. ]]>Thu, 22 May 2014 14:54:02 GMThttp://snipplr.com/view/74654/load-existing-email-message-and-modify-its-contents-inside-android-apps/(PHP) Wordpress insert post attachments at custom size linked to custom size - adambundyhttp://snipplr.com/view/72339/wordpress-insert-post-attachments-at-custom-size-linked-to-custom-size/
To insert custom loop of post attachments as images (at core or custom size) linked not to full size image but custom-configured (or core) size. ]]>Thu, 12 Sep 2013 00:07:49 GMThttp://snipplr.com/view/72339/wordpress-insert-post-attachments-at-custom-size-linked-to-custom-size/(PHP) Magento Product Attachments - fmeextensionshttp://snipplr.com/view/71649/magento-product-attachments/
This extension has been developed by Fme for magento store admins. The extension allows merchants to upload files like Pdf, txt, .doc,and other zip and media files in product page. The customers can download products attachments with or without registering for the website. ]]>Thu, 27 Jun 2013 17:08:02 GMThttp://snipplr.com/view/71649/magento-product-attachments/(PHP) Using Advanced Custom Fields\' Relationship Field to show attachments of a related post - bitsculptorhttp://snipplr.com/view/60202/using-advanced-custom-fields-relationship-field-to-show-attachments-of-a-related-post/
]]>Wed, 26 Oct 2011 14:33:52 GMThttp://snipplr.com/view/60202/using-advanced-custom-fields-relationship-field-to-show-attachments-of-a-related-post/(Java) Iterate through Lotus Notes document attachments in JAVA - Mihihttp://snipplr.com/view/39965/iterate-through-lotus-notes-document-attachments-in-java/
Use this class to iterate through lotus notes documents attachments in java!
A LotusScript version could be useful also! ]]>Fri, 03 Sep 2010 19:57:26 GMThttp://snipplr.com/view/39965/iterate-through-lotus-notes-document-attachments-in-java/(CSS) Drupal custom styles for upload attachments table - zachharkeyhttp://snipplr.com/view/11848/drupal-custom-styles-for-upload-attachments-table/
The following styles are designed to work with the markup from a custom theme override template called [upload_attachments.tpl.php](http://snipplr.com/view/11851) ]]>Wed, 04 Feb 2009 14:10:51 GMThttp://snipplr.com/view/11848/drupal-custom-styles-for-upload-attachments-table/(PHP) SimpleMail - Coryhttp://snipplr.com/view/7300/simplemail/
A simple very easy to use class for sending emails with / without attachments. ]]>Tue, 15 Jul 2008 10:20:09 GMThttp://snipplr.com/view/7300/simplemail/