Questions tagged [email-attachments]

Email attachments are file(s) that are sent along with an email. Use this tag for programming questions related to attaching files to an email message, receiving such files, or processing them (e.g. as part of a mail forwarder or spam filter). Non-programming support questions related to email attachments (e.g. what to click on to add an attachment) are off-topic here, but may be suitable elsewhere on the network.

An email attachment is a computer file sent along with an email message. One or more files can be attached to any email message, and be sent along with it to the recipient. This is typically used as a simple method to share documents and images. A paper clip image is the standard image for an attachment in an email client.

Most mail providers also impose a restriction on the file size of email attachments. For example, Gmail restricts the total email attachment size to 25 MB.

It is also common for some mail providers to block certain emails based on email attachment file types due to security issues.

This tag may relate to:

  • The process of attaching any file with an email
  • The file itself
2599 questions
6
votes
2 answers

Please copy code, switch to application and paste it there but where?

I am using oAuth2.0 for reading email from my Gmail account. And here is my code oauthswift = OAuth2Swift( consumerKey: "242468529977-xxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com", consumerSecret:…
Jitendra Modi
  • 2,344
  • 12
  • 34
6
votes
1 answer

How to extract email attachments using Horde IMAP Client in PHP

I am using Horde IMAP Client to fetch emails from an IMAP server. So far so good, I can authenticate, connect to a mailbox, download and parse emails. The problem now is I need to parse emails with attachments, and I am finding it a bit tricky…
katwekibs
  • 1,342
  • 14
  • 17
6
votes
3 answers

Attach Image to Email in React Native (using rn-image-picker & rn-mail)

11/04 UPDATE: I've created a repo with an app that demonstrates just this problem below. Anyone who wants to install and play with it can find it here... https://github.com/geirman/react-native-photo-emailer I'm using the following packages…
Chris Geirman
  • 9,474
  • 5
  • 37
  • 70
6
votes
3 answers

How to send an email with attachment in wordpress?

Now I can send an email without attachment : wp_mail( $to, $subject, $message, $headers); But how can I send an email with attachment?
fms
  • 2,147
  • 4
  • 18
  • 16
6
votes
1 answer

How Set Attachment Name to Show Properly in Outlook

I'm creating an email with a MIME attachment from a BizTalk 2016 SMTP Send Port. However, I think any knowledge that anyone can share from any other language about the oddities of Outlook and MIME might help me fix the issue below. In Outlook, the…
NealWalters
  • 17,197
  • 42
  • 141
  • 251
6
votes
2 answers

Errno::ENOENT - No such file or directory @ rb_sysopen

I'm trying to send an email attachment using action mailer in ruby on rails and I keep getting this error. The problem seems to be that it can't locate the file in the directory I specified, but the file path is valid. I also checked this using…
bdowe
  • 61
  • 1
  • 1
  • 3
6
votes
3 answers

How do I attach the excel file to the email?

I think Im close, I just need to pass the $excelFile in Mail but it keeps saying its undefined, yet when I pass $truckstop_post it goes through but that data is not formatted correctly bc it didnt go through the Excel::create yet. How do I get the…
mcornille
  • 343
  • 2
  • 4
  • 17
6
votes
1 answer

link to an email attachment

Hi I am sending email attachments (using php) and would like to point out to the people that I send the emails to that there are attachments. I want to do this by displaying a link in the html body of the email, so all they need to do is click the…
Alistair Prestidge
  • 673
  • 3
  • 9
  • 19
6
votes
2 answers

Mailgun sending attachment with RestSharp

I'm using RestSharp to try and send an attachment with the Mailgun API. I have tried attaching from both a file in the system using a hardcoded path and also from a binary file stored in the database using ToArray() method on the varbinary(MAX) (SQL…
Sinmok
  • 656
  • 1
  • 10
  • 19
6
votes
1 answer

Sending Excel file, that contains the code, as an attachment

I've written Excel VBA code that sends an email via Outlook. Everywhere I've looked, example code for attaching files to an email is for static named files, as in, you're sending the same file name, with the same path every time. The button that…
Davey
  • 123
  • 1
  • 3
  • 18
6
votes
2 answers

Hyperlink to Outlook Attachment

When you attach a document to an outlook email, a copy of the document is created and stored somewhere. You can obviously link to any location in the body of outlook. A hyperlink to a local document will not be useful to a recipient on another…
6
votes
4 answers

Jenkins: ${BUILD_LOG, maxLines, escapeHtml} not working

I am trying to use "${BUILD_LOG, maxLines, escapeHtml}" like discribed in: How can I take last 20 lines from the $BUILD_LOG variable? Unfortunately it doesn't work for me. I get this error: Script1.groovy: 114: expecting anything but ''\n''; got…
Beasly
  • 1,517
  • 4
  • 20
  • 30
6
votes
2 answers

Is it possible to add a attachment to a mail with the mailto function in actionscript 3?

Is it possible to add a attachment to a mail with the mailto function in actionscript 3? Thats the thing, i want to open the default mail program compose window with some data but i also need to add a file as attachment, and that file must be a…
Juan Techera
  • 1,192
  • 2
  • 14
  • 25
6
votes
1 answer

Force phpmailer to send mail with empty body

I need to send an pdf file as attachment to a FAX gateway using phpMailer. If this email has a body, the fax will have a second page with this text. By saying: $mail->Body = ""; php Mailer returns Message body empty How can I force phpMailer to…
Thomas1703
  • 1,152
  • 5
  • 16
  • 33
6
votes
1 answer

Python email MIME attachment filename

I'm having trouble attaching a CSV file to an email. I can send the email fine using smtplib, and I can attach my CSV file to the email. But I cannot set the name of the attached file, and so I cannot set it to be .csv. Also I can't figure out how…
JohnS
  • 63
  • 1
  • 1
  • 4