Page 1 of 1

Translation from Pascal

PostPosted: Mon Oct 15, 2018 3:55 am
by Lena
Hello.
I want to send email from the IOS application. I found this solution. Please help me translate this code from pascal:
Sending an email from an iOS FireMonkey application

Re: Translation from Pascal

PostPosted: Mon Oct 15, 2018 1:36 pm
by rlebeau
Lena wrote:I want to send email from the IOS application. I found this solution. Please help me translate this code from pascal:
Sending an email from an iOS FireMonkey application


You asked a similar question in this same forum 2 years ago:

[iOS]Open link

In this case, simply pass in a "mailto" formatted url string to the OpenURL() wrapper method that you were previously given, eg:

Code: Select all
String ToStr = Edit1->Text;
String SubjectStr = Edit2->Text;
String BodyStr = Memo1->Text;
String URL = _D("mailto:") + ToStr + _D("?subject=") + SubjectStr + _D("&body=") + BodyStr;
OpenURL(URL);

Re: Translation from Pascal

PostPosted: Tue Oct 16, 2018 3:01 am
by Lena
Thank You very much!