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
0
votes
2 answers

Saving specific attachment

I've an Outlook rule to run the following script when a specific email comes in. I want the code to look in the specific folder, see if there is currently a file called CID.csv and if so delete it before saving the new CID.csv file into…
Deke
  • 425
  • 5
  • 20
0
votes
1 answer

How to move an attachment from one e-mail to another using MailKit/MimeKit?

If we have the UniqueId to the mail we wish to move the attachment to via the usage of an ImapClient, how exactly can we achieve this? Thank you!
SpiritBob
  • 2,355
  • 3
  • 24
  • 62
0
votes
0 answers

UTL_SMTP trying to attach multiptle files greater than size 32k

I have a stored PL/SQL procedure that reads data from table and mails them as attachments. The data are stored in l_clob2 and l_clob and here I am trying to attach these two as two sperate email attachments in a single mail. I am able to properly …
TJ32
  • 293
  • 2
  • 7
  • 20
0
votes
1 answer

Read multiple pdf attachments from Email & save all attachments as single pdf file

I am able to save single attachments using below code var mimePart = (attachment as MimePart); using (var fileStream = new FileStream(filePath, FileMode.Create, FileAccess.Write)) { mimePart.ContentObject.DecodeTo(fileStream); } Here each…
vaibhav shah
  • 4,939
  • 19
  • 58
  • 96
0
votes
1 answer

I can't get the attachment from a mail sent in the mail box to the mail box

I made a Python program that sends an attachment to a mailbox which is the main mailbox of my project. The mail is sent from the mailbox itself to the mailbox itself, so it is the same address for the receiver and for the sender. (see on pic) here…
Timothé
  • 33
  • 3
0
votes
2 answers

No such file or directory: 'download.jpg'

I made a email sender a few months ago and now I have another project and I wanted to re-test this and for some reason it cannot find the JPG image which is basically in the same directory as the python file.. #Email Module Imports import…
Aura
  • 25
  • 4
0
votes
0 answers

How do I send multiple images using php mail() function from different input fields to an email

I have an HTML form that the user has to fill and upload 6 different files in either, JPG, JPEG, PNG or PDF format and I want when the user uploads the files individually, they'll send as an attachment to the designated email before they get a loan…
Greywood
  • 11
  • 6
0
votes
1 answer

The attachment file with email in PHP do not appear. Can someone help me?

The attachment file with email in PHP do not appear. Can someone help me? i just want to know why my attachment file in email using php cannot appear. i donno which part that i have error. i'm still new with coding. This is my php.
0
votes
1 answer

How to send an attachment from memory using gomail?

I want to send a CSV attachment without saving the attached data to a hard drive first. I'm using gomail throughout my code. How can I attach data directly from memory using gomail?
nobody
  • 1,144
  • 1
  • 10
  • 20
0
votes
1 answer

Only run if email has attachment

I want the below code to run when a specific subject appears in an email. Also to only run if that email has an attachment. Outlook ignores the attachment part of the rule, and tries to run the code even if the attachment is not there (it seems to…
0
votes
0 answers

Sending Email attachments using Java - org.apache.commons.net.smtp.SMTPClient

I need to send an email with attachment using smtpclient as this does not need me to authenticate for whitelisted senders. I do have snippet to send a plain text email as below, but struggling to send it with an…
devlover
  • 41
  • 3
  • 6
0
votes
0 answers

Send multiple spreadsheet rows to the same email

I used the second script (the one with EMAIL_SENT confirmation) from the link below and it worked great). https://developers.google.com/apps-script/articles/sending_emails I need help to edit this same script to send just one email if the email…
0
votes
0 answers

CSV file from the SQL Server is out of format

I am new to SQL Server and trying to send a CSV file as an email attachment to business users. Unfortunately, the file received is totally out of format. I have the following code and the table is from SAP B1. What would be the best way to resolve…
0
votes
1 answer

Downloading attachment based on time sent, using Excel VBA

I have VBA code for "downloading mail attachment based on sender name". Sometimes the sender will send multiple files in a day. I want to download the first file sent, based on time of sending. What changes to be done in the code in this case? Sub…
0
votes
1 answer

How to extract attachments into a new subfolder per email?

I'm trying to do this: Public Sub saveAttachment(item As Outlook.MailItem) Dim attachment As Outlook.Attachment Dim defaultPath As String defaultPath = "c:\Email Exports" For Each attachment In itm.Attachments attachment.SaveAsFile defaultPath &…