Sub btnSend_Click
'-------------------------------------------------------
' SEND EMAIL
'-------------------------------------------------------
If MyDownloaded=True Then ' If data downloaded
Message.To.Add(Main.MyEmail) ' Set email
Message.Subject ="Application Data" ' Set subject
Message.Attachments.Add(File.Combine(File.DirRootExternal, MyFile))
StartActivity(Message.GetIntent) ' Send mail
Activity.finish
End If
End Sub