I have experienced the .dat file issue when sending emails from outlook and viewing them on my iPhone - not related to Xojo. The solution in all cases was to delete the person from my contacts list, then create a new name for the same person, add their details (email, etc.). Once the email was sent with a new contact, then the file would properly show up on my ipohone as a pdf or whatever correct extension was used.