Show TOC

Triggering Phone, SMS and E-MailLocate this document in the navigation structure

With SAPUI5 for Mobile you can easily trigger native mobile phone applications such as e-mail, telephone, and text messages.

You can set predefined values for the application so that a user does not need to enter this information themselves. When personal information is displayed, for example phone numbers and e-mail addresses, you can initiate a phone call or e-mail with just one tap.

The URLHelper API contains the following triggers for telephone, texts, and e-mail applications:

  • Trigger telephone application

    sap.m.URLHelper.triggerTel( [Telephone Number] ); //Telephone number is optional
  • Trigger text messaging application

    sap.m.URLHelper.triggerSms( [Telephone Number] ); //Telephone number is optional
  • Trigger e-mail application

    sap.m.URLHelper.triggerEmail( [Destination Email], [Subject], [Default Message Text], [CC], [BCC] ); 
    // All parameters are optional
  • Redirect To custom URL

    sap.m.URLHelper.redirect( URL ); 
    //URL is required and can be used for custom protocols (e.g http, ftp, ...)
API Reference