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

php send html email with .csv attachment

I am sending an email through php no problem. I want to attach a .csv file along with the HTML email provided. I can't seem to find how to do that. Is there a certain Content-Type I also have to include in the $headers along with a…
ToddN
  • 2,901
  • 14
  • 56
  • 96
6
votes
3 answers

How to set a nice name for an e-mail (System.Net.Mail.SmtpClient) attachment

I'm sending attachments using the System.Net.Mail.SmtpClient in C#. The attachment names are the same as the name of the file I pass into the attachment constructor myMail.Attachments.Add(new Attachment(attachmentFileName)); How would I go about…
Brad Bruce
  • 7,638
  • 3
  • 39
  • 60
5
votes
3 answers

Git patch file attached to Outlook email gets modified by it

I want to send .patch files that were generated by the git format-patch command via Outlook (I have to use Outlook where I work, no need to suggest me otherwise). The goal is only to have my code reviewed by a colleague before pushing my changes to…
franmon
  • 2,057
  • 2
  • 19
  • 25
5
votes
1 answer

Json file not being attached to email for android

I am trying to send an attached json file to an email, however for some reason the json file is not being attached when the email is sent/created. Note: I do NOT want the user to select the file to attach, I want it to be fixed/set automatically. I…
mr nooby noob
  • 1,860
  • 5
  • 33
  • 56
5
votes
1 answer

Sendgrid failing to attach multiple files and showing no error code

I'm using sendgrid email with Java. I'm trying to send multiple attachments but somehow the email is missing 1 or 2 files. Sometimes all attachments are being sent. I've checked the status code too. Its 202 every time. This is unpredictable…
5
votes
4 answers

VBA to filter and send email

I am trying to automate the email process which we have been sending to various stack holders. I wanted to filter the column D based on company code and send out the email to the people listed in O column ( the email should not be duplicated), and…
Kelvin
  • 160
  • 2
  • 15
5
votes
0 answers

Handling winmail.dat using java mail api

I am using JavaMail API to get attachments and some of them are in form of winmail.dat. As stated in get email attatchment for POP 3 received as winmail.dat or How do I handle Microsoft outlook winmail.dat? Any other surprises? I tried both…
benchpresser
  • 2,171
  • 2
  • 23
  • 41
5
votes
1 answer

How to change the maximum message size limit on the server?

I have written a Python script which is send an email with an attachement, but i get always the same error message : raise SMTPSenderRefused(code, resp, from_addr) smtplib.SMTPSenderRefused: (552, b'5.3.4 Message size exceeds fixed maximum mess age…
Harley
  • 469
  • 1
  • 6
  • 16
5
votes
3 answers

Yii2 - Generate Pdf on the fly and attach to email

This is how I can generate pdf page public function actionPdf(){ Yii::$app->response->format = 'pdf'; $this->layout = '//print'; return $this->render('myview', []); } And this is how I send emails $send =…
Anna
  • 2,911
  • 6
  • 29
  • 42
5
votes
1 answer

Email signature becomes attachment when replied from Gmail

I have a new signature and I use Outlook 2003 to send out my emails. The graphics within are sourced from a server. The email+signature look fine, but when somebody using Gmail replies to me, the graphics within the email become attachments for…
PCOOPS
  • 63
  • 4
5
votes
1 answer

Attachment start missing in an Email after a period of time

I am having issues with the attachment in an email. After every few days, user don't find the expected attachment in there email. This seems to be happening for around 10-20 mins and then it corrected itself meaning that the later email will contain…
Ammar Khan
  • 2,565
  • 6
  • 35
  • 60
5
votes
1 answer

How do I Insert an image into email body?

I want to send a image in email body using go lang. Used this package from github https://github.com/scorredoira/email err := m.Attach("image.png") if err1 != nil { fmt.Println(err1) } Now i am able to send image file as…
Dharani Dharan
  • 624
  • 1
  • 7
  • 18
5
votes
2 answers

C# Sending Email with attached file (image)

My method sends an email using a SMTP Relay Server. Everything works fine (the email gets sent), except for that the attached file (the image) is somehow compressed/notexistent and not able to retrieve from the email. The method looks like…
ChrisRun
  • 993
  • 1
  • 10
  • 24
5
votes
2 answers

Mangled URL Parameters in IE9

I'm seeing mangled URL parameters coming from IE9 desktop clients. The links are sent via email, and all of the mangled URLs come from the plain-text version of the email. I'm almost sure that it has nothing to do with my stack (django, nginx,…
Salami
  • 2,849
  • 4
  • 24
  • 33
5
votes
2 answers

Set "mail.strictly_mime.parm_folding" in javamail

I'do use javamail to send mail with long filename attachments. The javamail acts accordingly to more recent RFC, and span the filename in two lines of the mail's header, like this example: ------=_Part_0_978693914.1433356404377 Content-Disposition:…