attachment

how to add .vcf file as attachment in application iphone

不问归期 提交于 2019-12-04 12:15:33
问题 In my app I want to add .vcf file as attachment in MFMailComposeViewController. 回答1: The documentation for MFMailComposeViewController shows that its addAttachmentData:mimeType:fileName: instance method is the way to go: - (void)addAttachmentData:(NSData*)attachment mimeType:(NSString*)mimeType fileName:(NSString*)filename The attachment is the actual vcf file loaded or transformed into NSData. The mimeType for a vcf is @"text/x-vcard" . The fileName is whatever you want to call it, though

Saving only the REAL attachments of an Outlook MailItem

狂风中的少年 提交于 2019-12-04 11:26:55
问题 I'm currently developing an Outlook Addin which saves MailItems and Attachments in my MSSQL Database. I got a method where I save the MailItem with all it's attachments. But if I save all attachments the embedded images in the MailItem are also saved. Does anyone know how to save all real attachments?? I mean like the attachments in the picture below: and not the embbeded images that are in the mail body. Here is the code that I use to loop through all attachments of a MailItem and then save

Swift Mailer attachments

跟風遠走 提交于 2019-12-04 11:10:27
I'm creating a CSV on the fly with PHP, I then need to attach this CSV file to the the Swift Mailer Message. I have tried using file_get_content on the created file aswell as using chunk_split(base64_encode(file_get_contents()) on the created file aswell as attaching the file before writing it to disk. Without writing to disk I get Rescource #183 in the CSV, with attaching it with file_get_content I get just a string in each row of the CSV file, anyone know what I'm doing wrong? if(!file_exists(_PS_ORDERS_DIR_.$orderDate.'/'.$file_name.'.csv')) { if($file = fopen (_PS_ORDERS_DIR_.$orderDate.'/

Add Attachment with UpdateListItems?

99封情书 提交于 2019-12-04 10:54:27
Is it possible to add an attachment to a new list item with UpdateListItems? I've tried this SOAP, but no dice.... Can someone share with me the proper SOAP structure to get this done? <SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <ns0:Body> <ns1:UpdateListItems> <ns1:listName>Some Calendar</ns1:listName> <ns1:updates> <Batch OnError="Continue" ListVersion="1"> <Method ID="1" Cmd

How to prevent attachments from being stored in _source with Elasticsearch and Tire?

可紊 提交于 2019-12-04 10:03:04
I've got some PDF attachments being indexed in Elasticsearch, using the Tire gem. It's all working great, but I'm going to have many GB of PDFs, and we will likely store the PDFs in S3 for access. Right now the base64-encoded PDFs are being stored in Elasticsearch _source, which will make the index huge. I want to have the attachments indexed, but not stored, and I haven't yet figured out the right incantation to put in Tire's "mapping" block to prevent it. The block is like this right now: mapping do indexes :id, :type => 'integer' indexes :title indexes :last_update, :type => 'date' indexes

Images in email: link or embed?

a 夏天 提交于 2019-12-04 08:48:17
问题 I noticed that almost all email messages I get do not embed images, but link them from the http instead (and they get blocked by default of course). I'm sending HTML email for my service and can easily embed images to create better visual experience. Is there particular reason not do so? Why everybody else is linking instead of embedding? 回答1: Because by embedding the images in the email, the email size gets a lot larger, uses more bandwidth for you to send it, and more for them to receive it

My php script for mailing a form is not working

给你一囗甜甜゛ 提交于 2019-12-04 06:48:49
问题 I am trying to set up a form that will send attachments along with the email content, but I have no idea what I am doing. I am completely new to PHP, and just learned to do the basic mail form work by, basically, trial and error, along with tutorials on the internet. But, when it came to attachments. Now I am completely at loss. And, although the PHP script supposedly runs, and the file is uploaded, all the operation stops all of a sudden. Neither do I get the messages that should show when

sending an e-mail with multiple attachments

左心房为你撑大大i 提交于 2019-12-04 06:07:55
i am trying to send an e-mail with multiple attachments. Intent emailIntent = new Intent(Intent.ACTION_SEND_MULTIPLE); emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] {"email1@email.com", "email2@email.com"}); emailIntent.putExtra(Intent.EXTRA_SUBJECT, "The Subject"); emailIntent.putExtra(Intent.EXTRA_TEXT, "The Text"); emailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); emailIntent.setType("text/plain"); startActivity( Intent.createChooser(emailIntent, "Send Email Using: ") ); This works great when I send the email using gmail, but it doesn't attach the attachments if I

Custom attributes for CouchDB attachments

一世执手 提交于 2019-12-04 04:26:06
I am trying to store multiple standalone attachments in a single CouchDB document, and assign arbitrary attributes (i.e. description) to each one. Is there a convention for doing this? From what I can tell, I cannot insert them in the _attachments structure directly. Thanks in advance! You can't modify anything in _attachments directly as it is reserved for use by CouchDB. However, it would be quite reasonable to store arbitrary attributes in a member such as attachment_attributes , using the same keys as in _attachments (the attachment names). For example: { "_attachments": { "foo.bar": ...,

How can I send an Excel file by email?

喜欢而已 提交于 2019-12-04 04:11:42
I have an excel file (Excel 2003 / xls format) and I want to send it by email with c#. My code send it successfully, but when I try to open the response file, it seems to encoded wrongly. For example here is the response filename: =_utf-8_B_RWxzesOhbW9sw6FzXzIwMTJfMTBfMTZf.dat And here is the response file itself: =?utf-8?B?VEdWdmJIWmhjMkZ1Wk1Pelh6UXlYekZmPz0NCiA9P3V0Zi04P0I/VGtW?=\ \ =?utf-8?B?TlgwZFRXaTU0YkhNPT89?=" Content-Transfer-Encoding: base64 Content-Disposition: attachment 0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAA AQAAAAAAAAAAEAAAIwAAAAEAAAD+////AAAAAAAAAAD////