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
228
votes
13 answers

How to attach file to a GitHub issue?

I migrated with a project from Bitbucket to GitHub and I cannot find a way to attach a file to an issue (ex: screenshot, specs, etc). How to do it?
Alex
  • 5,510
  • 8
  • 35
  • 54
123
votes
9 answers

Sending email with attachments from C#, attachments arrive as Part 1.2 in Thunderbird

I have a C# application which emails out Excel spreadsheet reports via an Exchange 2007 server using SMTP. These arrive fine for Outlook users, but for Thunderbird and Blackberry users the attachments have been renamed as "Part 1.2". I found this…
Jon
  • 5,247
  • 6
  • 30
  • 38
102
votes
5 answers

Android multiple email attachments using Intent

I've been working on Android program to send email with an attachment (image file, audio file, etc) using Intent with ACTION_SEND. The program is working when email has a single attachment. I used Intent.putExtra(android.content.Intent.EXTRA_STREAM,…
yyyy1234
  • 1,021
  • 2
  • 8
  • 4
101
votes
4 answers

Sending Multipart html emails which contain embedded images

I've been playing around with the email module in python but I want to be able to know how to embed images which are included in the html. So for example if the body is something like I would like to embed…
John Jiang
  • 11,069
  • 12
  • 51
  • 60
101
votes
6 answers

Download file inside WebView

I have a webview in my Android Application. When user goes to webview and click a link to download a file nothing happens. URL = "my url"; mWebView = (WebView) findViewById(R.id.webview); mWebView.setWebViewClient(new…
Jay Mayu
  • 17,023
  • 32
  • 114
  • 148
100
votes
5 answers

Download attachments using Java Mail

Now that I`ve downloaded all the messages, and store them to Message[] temp; How do I get the list of attachments for each of those messages to List attachments; Note: no thirdparty libs, please, just JavaMail.
George
  • 8,368
  • 12
  • 65
  • 106
81
votes
4 answers

What to do when - java.io.FileNotFoundException: No content provider?

when I try to attach a file to an email, I get a java.io.FileNotFoundException: No content provider logcat output. If anyone could tell me what I am doing wrong or what I should do instead, that would be great.Thank you. This is how I add the files…
kivy
  • 987
  • 2
  • 12
  • 17
74
votes
1 answer

Android Intent for sending email with attachment

Possible Duplicate: Email from internal storage The email is being received on by the recipient, but without the attachment. Here is the code, any expert knows where did I go wrong? Intent intent = new…
Mr Jackson
  • 1,023
  • 2
  • 10
  • 11
69
votes
13 answers

Trying to attach a file from SD Card to email

I am trying to launch an Intent to send an email. All of that works, but when I try to actually send the email a couple 'weird' things happen. here is code Intent sendIntent = new…
Chrispix
  • 17,941
  • 20
  • 62
  • 70
65
votes
7 answers

PhpMailer vs. SwiftMailer?

I'm building a fairly simple PHP script that will need to send some emails with attachments. I've found these 2 libraries to do this. Does either one have significant advantages over the other? Or should I just pick one at random and be done with…
Paul Wicks
  • 62,960
  • 55
  • 119
  • 146
53
votes
8 answers

How to add a UIImage in MailComposer Sheet of MFMailComposeViewController

I want to insert a UIImages inside the compose sheet of an MFMailComposerViewController. Please note I don't want to attach them, but I want to place them in a table using HTML code which will be the part of the email body.
rkb
  • 10,933
  • 22
  • 76
  • 103
48
votes
3 answers

Set Email Attachment name in C#

I add an attachment like this: System.Net.Mail.Attachment attachment = new System.Net.Mail.Attachment(AttachmentPath); msg.Attachments.Add(attachment); But I want to make it attach as a different name, the actual file name is very long and…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
45
votes
7 answers

Is it possible to interact with hidden elements with capybara?

I have a file field that has opacity: 0 and is overlaping a fake button. Its a common css technic to fake a sort of "Upload button" that displays consistently across different browsers. Capybara doesn't allows me to call attach_file on that input.…
miguel.camba
  • 1,777
  • 1
  • 14
  • 19
45
votes
6 answers

Save attachments to a folder and rename them

I'm trying to get a VBA macro in Outlook that will save an email's attachment to a specific folder and add the date received to the file name. My googling has gotten me this far: Public Sub saveAttachtoDisk (itm As Outlook.MailItem) Dim objAtt…
Roy Haskell
  • 498
  • 1
  • 4
  • 6
44
votes
6 answers

Images in email: link or embed?

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…
Serge Khorun
  • 783
  • 1
  • 7
  • 6
1
2 3
99 100