# sendEmail attachments

**URL:** <https://forum.inductiveautomation.com/t/sendemail-attachments/7867>\
**Category:** Ignition\
**Created:** [January 17, 2014, 11:59pm UTC](https://forum.inductiveautomation.com/t/sendemail-attachments/7867 "2014-01-17T23:59:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NorthPoint](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@NorthPoint](https://forum.inductiveautomation.com/u/NorthPoint)\
**Post date:** [January 17, 2014, 11:59pm UTC](https://forum.inductiveautomation.com/t/sendemail-attachments/7867/1 "2014-01-17T23:59:46Z")

</div>

Hello-

I have successfully gotten sendEmail to send emails with attached files, very nice! I have a couple of questions though:

1. Everything works fine when I attach a known file type (PDF, CSV, XLS, etc). But if I try to attach something that does not have a common filetype (at least in the Windows world) like “ODF” extension files, or OSX Pages files, etc etc- the system will not send the mail. Can you tell me what the rules for attachments are and if they are changeable (I really need to be able to attach ANY kind of file). Thanks much.

2. Also, I think I know the answer to this, but just in case: is there any way to CC or BCC someone using the sendMail script?

Thanks…  
Bob

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [May 9, 2014, 9:02pm UTC](https://forum.inductiveautomation.com/t/sendemail-attachments/7867/2 "2014-05-09T21:02:21Z")

</div>

Bob,

Any file extension that doesn’t have a MIME type defined in the web server’s MIME type listing will fail. You can find the listing for the MIME types here

```auto
C:\Program Files\Inductive Automation\Ignition\tomcat\conf\web.xml
```

As for Bcc or Cc, this is not going to be possible.

---

<div class="post-metadata">

**Author:** ![snowgoer](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@snowgoer](https://forum.inductiveautomation.com/u/snowgoer)\
**Post date:** [October 31, 2017, 6:37pm UTC](https://forum.inductiveautomation.com/t/sendemail-attachments/7867/3 "2017-10-31T18:37:31Z")

</div>

I know this is an old thread, but has this location for the MIME file types been moved? We checked that location on our end but did not find the MIME listings

---

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [November 1, 2017, 12:09am UTC](https://forum.inductiveautomation.com/t/sendemail-attachments/7867/4 "2017-11-01T00:09:25Z")

</div>

I believe you will find the MIME type definitions at:

```auto
Windows
C:\Program Files\Inductive Automation\Ignition\webserver\webdefault.xml

OSX
/usr/local/ignition/webserver/webdefault.xml

```
