Questions tagged [attachment]

Any additional content added to a digital object, such as an email attachment.

Many languages provide facilities for sending email or transmitting other data (e.g. SOAP) but may not always provide a clear interface for attaching documents or other arbitrary binary data to the message or object.

This tag is for all questions relating to adding attachments to transmitted data or providing an interface for doing so.

2942 questions
12
votes
4 answers

Send PHP HTML mail with attachments

I got a problem: Until today, I sent HTML mails with PHP using a header which contains Content-type: text/html; Now, I added functionality to add attachments. For this, I had to change this line to Content-Type: multipart/mixed; Now, with…
Florian Müller
  • 7,448
  • 25
  • 78
  • 120
12
votes
4 answers

How can I link source to a jar package in eclipse?

How can I link source to a jar package in eclipse? I am trying to add the external library ch.ntb.usb. I added the jar file to my build path, but when I tried to run the application it returned the following error: The jar file ch.ntb.usb has no…
Sean Greevers
  • 235
  • 1
  • 5
  • 14
12
votes
1 answer

Parsing Multipart emails in python and saving attachments

I am pretty new to python and I am trying to parse email from gmail via python's imaplib and email. It is working pretty well but I am having issues with email attachments. I would like to parse out all of the plaintext from the email while…
ajt
  • 1,341
  • 3
  • 13
  • 30
12
votes
3 answers

Send email with attachment using client's email application

I need my locally-installed, thick-client application (Qt / C++) to generate a ready-to-be-sent email message on the client's machine: This message must contain the contents of a relatively small (15K - 200K) binary file. Many of my users will be…
Dave Mateer
  • 17,608
  • 15
  • 96
  • 149
12
votes
7 answers

Android - not able to attach a file in email

By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user). I am able to see the file "/data/data/package_name/files/ in file explore in DDMS, but when i attached the…
pankaj
  • 121
  • 1
  • 1
  • 3
12
votes
1 answer

Attachments in Papercut

I am currently using Papercut in order to test sending emails over an SMTP server connection in C#. The emails that I need to send have files attached to them however the files do not seem to appear when I view the email on Papercut. I am sure the…
user3148942
  • 125
  • 1
  • 7
12
votes
3 answers

Android: Intent.ACTION_SEND with EXTRA_STREAM doesn't attach any image when choosing Gmail app on htc Hero

On the Emulator with a default mail-app all works fine. But I have no attach when I'am receiving a mail which I've sent from my Hero using a Gmail app. The default Mail app on the hero works fine. How can I make this code works with Gmail app on…
shinydev
  • 759
  • 2
  • 7
  • 20
12
votes
3 answers

How to handle multipart/alternative mail with JavaMail?

I wrote an application which gets all emails from an inbox, filters the emails which contain a specific string and then puts those emails in an ArrayList. After the emails are put in the List, I am doing some stuff with the subject and content of…
Jef
  • 791
  • 1
  • 18
  • 36
12
votes
3 answers

jenkins attachments - what is the syntax?

I'm trying to have Jenkins attach a file or set of files to the email notification that the job has completed. I keep getting an error along the lines of: Sending email for trigger: Success ERROR: Error accessing files to attach: Expecting Ant GLOB…
slugger415
  • 361
  • 1
  • 3
  • 11
12
votes
7 answers

How to save email attachment using OpenPop

I have created a Web Email Application, How do I view and save attached files? I am using OpenPop, a third Party dll, I can send emails with attachments and read emails with no attachments. This works fine: Pop3Client pop3Client =…
Pomster
  • 14,567
  • 55
  • 128
  • 204
11
votes
2 answers

Handle attachment in response with RequestBuilder in GWT

I am making a HTTP POST request from GWT Client to a HTTPServlet. This Servlet is creating a PDF file from request content and writing it to response stream. Headers of the response stream are: Content-Disposition: attachment;…
nishu
  • 1,493
  • 11
  • 26
11
votes
3 answers

How do I attach a prawnto-rendered .pdf to an email in Rails 2.3.5?

My application creates a .pdf file when it is rendered by passing it to the URL (for example, domain.com/letter/2.pdf) It doesn't get saved anywhere. How can I make that actual pdf an attachment in an outbound email. Here is my mailer: def…
Satchel
  • 16,414
  • 23
  • 106
  • 192
11
votes
3 answers

Attach a PDF file to email - Swift

I want to send email with a PDF attachment. I created PDF file, then I did the following which is wrong I believe: // locate folder containing pdf file let documentsPath =…
Xin Lok
  • 496
  • 1
  • 6
  • 21
11
votes
3 answers

Saving only the REAL attachments of an Outlook MailItem

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…
ValarmorghulisHQ
  • 989
  • 1
  • 11
  • 31
11
votes
1 answer

Send generated zip file with ExpressJS

I'm using the express module in a NodeJS server to generate a zip file. The express server is responding to many requests, so I know that is set up correctly, but I'm having trouble generating a zip file and sending that back as a downloadable. I…
James
  • 3,051
  • 3
  • 29
  • 41