DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:send_mail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:send_mail [2015/03/04 18:13] (current)
octazid created
Line 1: Line 1:
 +=====SendMail=====
  
 +//​(Information and examples taken from the DroidScript documentation)//​
 +
 +====Description====
 +
 +The **SendMail** method allows you to send emails via any of the email Apps found on your device.
 +
 +You can also specify an optional attachment file. Leave out the last parameter or set it null if no attachment is required.
 +
 +<​code>​ app.SendMail( address, subject, body, attachment );</​code>​
 +
 +----
 +
 +====Example====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +   var file = "/​sdcard/​MyPic.jpg";​
 +   ​app.SendMail( "​myfriend@gmail.com",​ "​MySubject",​ "​Hello",​ file );
 +}  ​
 +
 +</​code>​
built_in/send_mail.txt ยท Last modified: 2015/03/04 18:13 by octazid