sendEmail attachments

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

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

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

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

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

I believe you will find the MIME type definitions at:

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

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