Mobile Send Email
axMobileSendEmail
Description
axMobileSendEmail provides the ability to send an email using a mobile device via Axes Mobile.
Usability
|
Context |
Supported |
|---|---|
|
Input screen fields |
No |
|
Output screen fields |
Yes |
|
Input subfile fields |
No |
|
Output subfile fields |
No |
|
New screen elements |
Yes |
|
Axes Mobile Execution |
Only |
Properties
|
Name |
Description and Comments |
JavaScript |
Shipped default |
|---|---|---|---|
|
bccAddress |
Specifies the email address of the person to receive a blind carbon copy of the message. Multiple addresses can be separated by a semicolon. |
Yes. Must return a string. |
None |
|
buttonType |
The type of Material Design's button style to apply. The values are unelevated, text, raised, outlined and dense. For Material Design theme only. |
No |
unelevated |
|
caption |
Specifies the text that is to appear on the axMobileSendEmail button. |
Yes. Must return a string. |
“Mobile Email” |
|
ccAddress |
Specifies the email address of the person to receive a carbon copy of the message. Multiple addresses can be separated by a semicolon. |
Yes. Must return a string. |
None |
|
enabled |
Indicates whether this element is enabled. TS2 only. |
Yes. Must return a Boolean. |
True |
|
icon |
The name of icon to display before the button's caption. For Material Design theme only. |
Yes. Must return a string. |
|
|
messageText |
Specifies the message of the email to be sent to the recipient. |
Yes.Must return a string. |
None |
|
onBlur |
Optional. JavaScript code to be executed when the element lost the focus. |
Yes |
None |
|
onFocus |
Optional. JavaScript code to be executed when the element receives the focus. |
Yes |
None |
|
recipient |
Specifies the recipient’s email address. Multiple addresses can be separated by a semicolon. |
Yes. Must return a string. |
None |
|
sizeToField |
Indicates whether the button should size to its containing field or its content. |
Yes. Must return a Boolean. |
True |
|
style |
Additional style properties that should be applied to the axSMS. |
Yes. Must return a valid style object. |
None |
|
subject |
Indicates the subject of the email to be sent. |
Yes. Must return a string. |
None |
Notes
The display and behaviour of the email application that will launch when clicking this extension will depend on the device.
In order to be able to use this extension on iOS, the user needs to have setup a mail account in Settings > Mail, Contacts, Calendars.
In Application, appStylesTheme property = JQueryUI
When JQueryUI is selected from Application->Styling->appStylesTheme property, the display will change according to the theme that was set in the Application’s jqueryTheme property.
Basic theme display:

JQueryUI theme display:

In Application, appStylesTheme property = Material Design
When Material Design is selected from Application->Styling->appStylesTheme property, the display will change according to the theme that was set in the Application’s mdTheme property.

Examples
On the System i Main Menu, add the axMobileSendEmail extension to the screen.
Type a message inside messageText, for example “This is a test email from axes Mobile.”
Input valid email addresses for the recipient, ccAddress and bccAddress. You can specify multiple addresses by separating them with a semicolon.
Type an email subject in the subject property, for example “axMobileSendEmail test”.
Save your work and access the project using any mobile device.
Touch the axMobileSendEmail button on the device to launch the email application of the device. The details you specified are automatically inserted into the email.
Press the send button of the email application and then check that the message has been received in the email addresses you specified.
See Also
Using Screen Customization to Add Value
Using Scripting in Properties to Add Value
Application Style Collection for Application themes
