---
title: "Attach a file to a message"
weight: 87
description: "Add attachments to a new message, by drag and drop or by choosing them on your workstation."
source_hash: "7b92e0e5"
---

# Attach a file to a message

Adds one or more files from your computer to the email you are writing: signed quote, plan, photo, document requested by a customer.

## Where it is possible

In the **New email** form and in the full **Reply**, **Reply all** or **Forward** form: the **Attach a file** area is under the message. A forward also carries the original email's attachments.

The [quick reply](/capmail/action-repondre-mail) under the message has no attachments: click **Full form** to add some.

The PDF of a quote, an order or an invoice can also be attached directly from Dolibarr: see [Insert a quote, an order or an invoice into a message](/capmail/action-inserer-objet).

## Steps

1. Open the **New email** form (pencil icon above the email list), or the reply form.
2. In the **Attach a file** area, at the bottom of the form:
   - drag and drop one or more files onto the "Drag and drop files here" area,
   - or click the area to choose them on your workstation.
3. Each added file appears under the area, preceded by a paperclip.
4. To remove one, click the cross to the right of its name.
5. Finish the message and click **Send** (or **Send reply**).

Files added to a reply you abandon (**Cancel**, cross, or opening another email) are deleted: they will not go out with the next message.

## Refused files

A refused file is not added and a message gives the reason. Files already added stay in the list. Possible causes:

- **Size**: 10 MB maximum per file, unless your administrator set another limit.
- **Files without extension**: refused.
- **Executable file types**: refused, because they could be executed by the server or spread malware. Concerned extensions include `exe`, `bat`, `cmd`, `com`, `scr`, `dll`, `sh`, `php`, `py`, `pl`, `rb`, `jsp`, `asp`. Your administrator can add others.
- A name containing one of these extensions in the middle, like `invoice.exe.pdf`, is refused too. The beginning of a name is not an extension: `com.pdf` is accepted.

If a legitimate document is refused because of its name, rename it on your workstation before adding it.

## What it does

- On sending, the files go out with the email.
- They are kept with the sent email in Capmail: you find them by opening this message in the **Sent** bubble.
- The temporary copies deposited on the server during writing are then deleted.

## Good to know

If you close the form without sending, the attached files are abandoned with the message: a new message always starts with an empty attachment list.

## If it does not work

- **"Error adding file"**, with no further detail: the file complies with the rules above but could not be saved. Try again; if the error repeats with a large file, the web server's size limit may be lower than Capmail's, check with your administrator.

## See also

- [What do you want to do?](/capmail/actions)
- [Write a new message](/capmail/action-ecrire-message)
- [Forward an email](/capmail/action-transferer-mail)
