Email SQLite Database
Posted: Fri Dec 14, 2012 6:12 pm
Hello- still newbie here. I've developed a prototype application that stores data in a SQLite database. Now I'm trying to get the database off the iphone and back to my desktop PC. There doesn't appear to be a way to copy the file directly, so I thought I'd try using the mobileComposeMail command. However, when the email opens, it does not appear to contain an attachment and when I receive it, there is no attachment. Here's my code- I realize the attachment type is wrong, but I was expecting to just receive a text file with the name of the database at this point... I also changed my email address so it's not posted. Thanks in advance.
if the environment = "mobile" then
put DatabasePath into tAttachment["data"]
put "text/plain" into tAttachment["type"]
put "MeteorCount.SQLite" into tAttachment["name"]
mobileComposeMail "Meteor Data " & date(), "myemail@myserver.com",,"Here is the SQLite Database",tAttachment
end if
if the environment = "mobile" then
put DatabasePath into tAttachment["data"]
put "text/plain" into tAttachment["type"]
put "MeteorCount.SQLite" into tAttachment["name"]
mobileComposeMail "Meteor Data " & date(), "myemail@myserver.com",,"Here is the SQLite Database",tAttachment
end if