Translation from Pascal

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Post Reply
Lena
BCBJ Master
BCBJ Master
Posts: 710
Joined: Sun Feb 06, 2011 1:28 pm

Translation from Pascal

Post 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
rlebeau
BCBJ Author
BCBJ Author
Posts: 1726
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA
Contact:

Re: Translation from Pascal

Post 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);
Remy Lebeau (TeamB)
Lebeau Software
Lena
BCBJ Master
BCBJ Master
Posts: 710
Joined: Sun Feb 06, 2011 1:28 pm

Re: Translation from Pascal

Post by Lena »

Thank You very much!
Post Reply