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
4 answers

Adding Multiple Attachments in PHPMailer

I am trying to attach multiple images in the attachments. I have used forearch for every attachment but, its not getting the tempname and name when I use foreach, I'm probably doing something wrong. Below is the code and errors: Input HTML
Fahad Sohail
  • 1,818
  • 4
  • 21
  • 33
6
votes
2 answers

Forward Email with its attachment in Outlook 2010

The below code (I pulled from several sources) now works in that when I receive an email with specific words in the subject line it triggers a script that runs the below. This code then keeps the subject line, adds text the message body and the…
nfnf
  • 127
  • 2
  • 2
  • 7
6
votes
2 answers

Python: Open Thunderbird to write new mail with attached file

I would like to open Thunderbird on Debian AND Windows with an attached file for a new email. So I would like to do the same as in this thread but the posted solution does not work: Python open email client with attachment I have the very same…
Ohumeronen
  • 1,769
  • 2
  • 14
  • 28
6
votes
1 answer

phpmailer attach pdf from dynamic url

I'm sending an email using phpmailer. I have web service to generate pdf. This pdf is not uploading or downloading to anywhere. PDF url is like http://mywebsite/webservices/report/sales_invoice.php?company=development&sale_id=2 I need to attach…
Irawana
  • 269
  • 3
  • 6
  • 14
6
votes
2 answers

How to access gmail attachment data in my app

I have an app that uses a specifically created binary (.gcsb) file type. These files are kept in a folder on the sdcard. At the moment they are moved on and off using ES file explorer or the phone manufacturer 'behave like a USB drive' transfer…
nmw01223
  • 1,611
  • 3
  • 23
  • 40
6
votes
3 answers

PHP mail() email size limit

I just wanna ask, when I'm using PHPMailer to send information from a form with many attachments, it's sending everything ok unless the files are more than 7 MB in total. Everyhing on the server is set up right as you can see: memory_limit =…
TeeJay
  • 1,593
  • 3
  • 21
  • 33
6
votes
1 answer

Attachment name and file extension not working in email *.eml

I want to create email files in .eml format with multiple attachments in. The attachments are generated and the content of the attachments are correct. But the attachments always come in .dat format and the file names go as "ATT00001", "ATT0002"..…
mithilatw
  • 908
  • 1
  • 10
  • 29
6
votes
4 answers

php : email sending failed with more than one attachment

I am trying to implement mail functionality in php, its working fine with single attachment, but problem is when I am trying to send more than one attachment, its not working. I am using php mail() function for sending emails, I am trying to attach…
6
votes
1 answer

php create file and send as attachment without actually creating the file

I know how to read a file on the server and attach it to an email in PHP, but I wanted to know if I could attach a file that is created by my script but not created on the server (kinda like a temp file). So create file in memory and attach it to…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
6
votes
2 answers

Sending multipart mails and attachments

I am trying to send an E-Mail using the gem 'mail' with Ruby 1.9.3. It contains an text/html and an text/plain part which should be embedded as alternative parts as well an attachment. This is my current code: require 'mail' mail =…
krissi
  • 253
  • 2
  • 13
6
votes
4 answers

How to set email attachment file name using UIActivityViewController email sharing

I am trying to share camera roll image using UIAcitivityViewController email sharing. Following are my code. ALAssetRepresentation *rep = [asset defaultRepresentation]; CGImageRef iref = [rep fullScreenImage]; UIImage *largeimage = [UIImage…
ttotto
  • 826
  • 3
  • 13
  • 31
6
votes
2 answers

Zip file sent with perl Email::Sender is corrupted

I'm trying to run a script that takes a text file, compresses it using Archive::Zip, and sends the zip file as an attachment via smtp using Email::Sender to create a mime message. I can send txt files in perl without corruption. I can send the file…
Dodd10x
  • 3,344
  • 1
  • 18
  • 27
6
votes
3 answers

Sending email with attachments

I've got a mailer that as follows: class Payments::LateNoticesMailer < AsyncMailer def notice(payment_id) @payment = PaymentDecorator.find(payment_id) @invoice = @payment.invoice template =…
6
votes
6 answers

Google drive download whole folder content with google drive viewer (google apps-script)

I have created an google script which go to my mail and fetch attachments and put it into a folder (shared as anyone with link), and share the link to folder with any given email. But when others open that folder with link it open in google drive…
6
votes
4 answers

Attaching a PDF to an Email from Android App - File Size is Zero

I am trying to attach a PDF file called download.pdf to an email in my Android App. I am copying the file first to the SDCard and then attaching it the email. I'm not if relevant, but I am testing on a galaxy tab device. The external storage path…
GuybrushThreepwood
  • 5,598
  • 9
  • 55
  • 113