PadCodedocs

Write Email

Opens a filled-in email for the person to check and send.

Category: Device · Can fail (wrap it in Try to handle that) · Takes time: the next step waits for it

#When to use it

Use it to send an order, feedback or a report by email, after the person has checked it.

#Example

A Send order button: To: orders@example.com, Subject: Order for table {tableNumber}.

#Good to know

  • The email opens filled in, and the person sends it. Your app can't send it on its own.
  • It needs Mail set up on the iPad. Without it, like in the Simulator, the step fails and says to add an account in Settings → Apps → Mail.
  • To takes one address or a list. Issues flags a typed address that isn't an email address.
  • The run waits until the email closes. Cancelling it doesn't stop the run.

#Add it

Select a view, open the Inspector's Actions tab, pick when it runs, tap Add action and choose Write Email (under Device). Tap the step to open its settings.

#Settings

SettingWhat it doesKindDefault
ToAn address, or a list of them.Any valueRequired
SubjectThe subject line.Text
BodyThe message.Text

#See also