5
votes

We are writing an application in Delphi XE2/Firemonkey for IOS (to run on an IPad) We need to be able to create an email witn an attachment from within the application. We have tried to use the Indy components but they do not work on IOS. Is there anyway we can do this in Delphi or do we have to resort to writing the app in Xcode?

3
I saw mention of the solution using iOS go past in my twitter stream, so the solution is out there!mj2008
I already did it for OSX with Indy... so, this should be possible with IOS...Whiler
Ok.. I tried.. and... Fatal: Can't find unit IdMessage used by main, so this can't be achieved with Indy...Whiler
@Whiler, you seem to have made a big jump in logic there. The error message just says it can't find a common Indy unit. That merely suggests you don't have Indy installed properly for the compiler to find it. It's a big step to go from there to the conclusion that Indy won't work.Rob Kennedy
@Whiler: Indy does not support iOS yet. That has nothing to do with the IdMessage error, though. That is separate.Remy Lebeau

3 Answers

6
votes

Indy doesn't work on iOS. See this SO question.

There's a thread on the Embarcadero Delphi Firemonkey forums about this very topic. In it, it's suggested you use the iOS MessageUI framework, and refers to this SO question for an example.

1
votes

Sending an email from an iOS FireMonkey application

http://blogs.embarcadero.com/ao/2011/10/04/39133

1
votes

Delphi xe4 has all Indy components working both win32 /iOS platform.