hi, I am positive I had this working before upgrading to the most recent version of the SDK. I am recording an audio file in the background for my app, PracticeBuddy, and sending a sample of that (to keep flle size down) as an email attachment.
[lua]local onEmailRequestEvent = function( event )
if event.phase == “ended” then
local options =
{
to = emailAddress,
subject = “My Practice Session!”,
body = “Attached is a recording of the practice session I just completed.”,
attachment = { baseDir=system.DocumentsDirectory,
filename=dataFileName, type=“audio” },
}
native.showPopup(“mail”, options)
end
end
[/lua]
Bizarrely, the attachment shows up in the popup, but then it doesn’t make it after being sent into the inbox. The attachment is just not … attached.
I tested sending a .png from system.ResourcesDirectory and was successful. Does anyone have experience sending .aifs as attachments?
thanks,
Jen
