Translation from Pascal

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Translation from Pascal

Postby Lena » Mon Oct 15, 2018 3:55 am

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
Lena
BCBJ Master
BCBJ Master
 
Posts: 583
Joined: Sun Feb 06, 2011 1:28 pm

Re: Translation from Pascal

Postby rlebeau » Mon Oct 15, 2018 1:36 pm

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

Re: Translation from Pascal

Postby Lena » Tue Oct 16, 2018 3:01 am

Thank You very much!
Lena
BCBJ Master
BCBJ Master
 
Posts: 583
Joined: Sun Feb 06, 2011 1:28 pm


Return to Technical

Who is online

Users browsing this forum: No registered users and 4 guests