Salesforce

How Do I Send an Email Directly from My Mobile App? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Send an Email Directly from My Mobile App? (Magic xpa 3.x)

It’s easy to enable the sending of emails directly from your mobile app. All it takes is one line of code.

  1. Define an Invoke OS Cmd operation, zoom to the Expression Editor and type in 'mailto: and then the phone number, followed by a second quote mark ('), for example: 'mailto:support@magicsoftware'.



    You can also use the following type of URL for the command:

    mailto:?to=support@magicsoftware.com&subject=this is a test&body= test mail.

  2. From the Invoke operation’s properties, it is very important to remember to set the Execute On property to Client.

Note: When sending mail, there are some characters that are not allowed in the subject and body. On iOS for example, the ampersand (&) character should be replaced with %26 and on Android the following characters should be removed: #,%,&, :, and =.

Reference
Attachment 
Attachment