tto, tsubject and tmessage are all variables pulled from fields on the card.
Code: Select all
if the platform is "ios" then
revMail tto,,tsubject, field tmessage
answer "Email sent"
else if the platform is "android" then
mobileComposeUnicodeMail textencode("Heading","utf8"), "&tto&", "&tsubject&", , "&tmessage&"
answer "Email sent"
else
answer "This feature is for mobile devices."
end if