<div class="meta" robots="noindex">

</div>

Property

# EmailAttachment.MacType

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item is deprecated. Please use `Uniform Type Identifiers</topics/file_management/understanding_uniform_type_identifiers>` as a replacement.

</div>

## Description

The four-character Macintosh Type code.

## Sample code

This example uses the <span class="title-ref">MacType</span> code used for image/jpeg file types in the File Type Sets editor.

``` xojo
Dim file As EmailAttachment
file = New EmailAttachment
file.ContentEncoding = "UTF8"
file.MIMEType = "image/jpeg"
file.MacCreator = "prvw"
file.MacType = "JPEG"
```

## Compatibility

All project types on all supported operating systems.
