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
12
votes
9 answers

Mailgun Sent mail With attachment

I am facing issue when mail having attachment sent using mailgun. If anyone has done this thing please reply. This is my code... $mg_api = 'key-3ax6xnjp29jd6fds4gc373sgvjxteol0'; $mg_version = 'api.mailgun.net/v2/'; $mg_domain =…
TechCare99
  • 1,763
  • 6
  • 24
  • 33
11
votes
1 answer

Changing name of automatic attached file in e-mail

I am using Mailkit library to send e-mails. This is the code to do so: public async Task SendAsync(IdentityMessage message) { if (message == null) return; LinkedResource inline = new…
jstuardo
  • 3,901
  • 14
  • 61
  • 136
11
votes
4 answers

Download attachment from mail using python

I have multiple emails that contain an attachment. I would like to download the attachment for unread emails and with a specific subject line. for example, I got an email that has a subject "EXAMPLE" and contains an attachment. So how it would be…
Karthik S
  • 111
  • 1
  • 1
  • 4
11
votes
2 answers

How to attach large files to an email using Python - Gmail API

I'm trying to send an email with an attachment (ideally multiple attachments) that are larger than 10 MB and smaller than the limit of 25 MB in total. The reason I mention 10 MB is because it seems to be the lower bound for when the normal way of…
11
votes
4 answers

Clipboard functionality in email template

I want to send a coupon code in the email template. A Small button that will copy the content of a input element on the clipboard. By email Template, i mean i want to send a email which will have a coupon code and there will be a button in the…
Rudresh Ajgaonkar
  • 779
  • 1
  • 10
  • 27
11
votes
1 answer

How to attach a ZIP file to an email in Java?

I am using AWS SES. I am trying to attach a ZIP file to an email of a CSV that is made in memory. I am close but am having a hard time figuring this out. Currently, when I receive the email i am still getting a .CSV but upon opening it appears that…
reedb89
  • 382
  • 3
  • 15
11
votes
3 answers

How to remove image as attachment but show in body of email

I found this solution for showing an image in the body of the email: Add image to body of an email And it works fine but it also adds the image as an attachment to the email. Attachment inlineLogo = new…
user123456789
  • 1,914
  • 7
  • 44
  • 100
11
votes
4 answers

Email attachment with long non-ascii name

I try to send System.Net.Mail.MailMessage with System.Net.Mail.Attachment. Name of attachment is "Счёт-договор №4321 от 4 июля.pdf" Code for attachment creation: var nameEncoding = Encoding.UTF8; return new System.Net.Mail.Attachment(new…
mif
  • 581
  • 6
  • 16
11
votes
8 answers

Gmail shows download icon on images of HTML Email

We have a Html Builder, that allows you to create responsive html for emails. We are using a third party engine to send the emails in bulk. The problem is, when email is being opend in gmail inbox, it shows download icon on some of images (not all),…
Pankaj Dubey
  • 796
  • 3
  • 8
  • 32
11
votes
1 answer

How to get csv attachment from email and save it

I am trying to get the attachment from an email and save it to a specific folder with the original file name. The email is very basic and does not have much to it other than the attachment. The file is a csv file and there will be only one per…
CircuitB0T
  • 465
  • 2
  • 6
  • 19
10
votes
3 answers

how to download mails attachment to a specific folder using IMAP and php

i am developing a site in which users can mail tickets and attach any type of files to a specific mail id. I need to add the mail subject, content and attachment to the database. I am doing this using cron. Except the attachments every thing works…
Juice
  • 3,023
  • 6
  • 39
  • 66
10
votes
4 answers

Dynamically generate PDF and email it using django

I have a django app that dynamically generates a PDF (using reportlab + pypdf) from user input on an HTML form, and returns the HTTP response with an application/pdf MIMEType. I want to have the option between doing the above, or emailing the…
Shane
  • 343
  • 1
  • 4
  • 10
10
votes
3 answers

Failed on using Swift to implement in-app email

I want to use swift to implement in-app email. When I click the button, the email window pops up. However, I am unable to send my email. Moreover, after I click cancel-delete draft, I cannot go back to the original screen. import UIkit import…
Peilin Li
  • 261
  • 1
  • 4
  • 11
10
votes
3 answers

Distinguish visible and invisible attachments with Outlook VBA

The requirement is to upload attachments to a server. However, we only want to upload those appears in the "Message" line (see pic below) of outlook, nothing else in the email body. Since Outlook itself knows which attachment should be show in the…
Earth Engine
  • 10,048
  • 5
  • 48
  • 78
9
votes
4 answers

How to send email with an attachment using Windows Phone 7 API?

My WP7 application requirement is to send the email with an attachment and use device default SMTP settings. I have tried EmailComposeTask class but it doesn't have any member for attachment. The other idea, i am thinking is to upload the file on…
Cruiser KID
  • 1,250
  • 1
  • 12
  • 26