B bishmedia Member Licensed User Longtime User Mar 20, 2013 #1 I'm plodding my way through the tutorials and im trying to do an email like the following.... B4X: Sub btnSendEmail_Click Message.To.Add("bishmedia@gmail.com") StartActivity(Message.GetIntent) Message.Subject = "Subject Variable here" Message.Body = "Body variable here" End Sub The email client opens up but the subject and body are blank?? Anyone?
I'm plodding my way through the tutorials and im trying to do an email like the following.... B4X: Sub btnSendEmail_Click Message.To.Add("bishmedia@gmail.com") StartActivity(Message.GetIntent) Message.Subject = "Subject Variable here" Message.Body = "Body variable here" End Sub The email client opens up but the subject and body are blank?? Anyone?
M masterleous Member Licensed User Longtime User Mar 20, 2013 #2 You had forgotten one decleration B4X: Dim Message As Email try this B4X: Sub btnSendEmail_Click Dim Message As Email Message.To.Add("bishmedia@gmail.com") StartActivity(Message.GetIntent) Message.Subject = "Subject Variable here" Message.Body = "Body variable here" End Sub Upvote 0
You had forgotten one decleration B4X: Dim Message As Email try this B4X: Sub btnSendEmail_Click Dim Message As Email Message.To.Add("bishmedia@gmail.com") StartActivity(Message.GetIntent) Message.Subject = "Subject Variable here" Message.Body = "Body variable here" End Sub
B bishmedia Member Licensed User Longtime User Mar 20, 2013 #3 Thanks but i just sussed it, declaration was there but the following line should have been at the end!!! StartActivity(Message.GetIntent) Many Thanks Upvote 0
Thanks but i just sussed it, declaration was there but the following line should have been at the end!!! StartActivity(Message.GetIntent) Many Thanks
M masterleous Member Licensed User Longtime User Mar 20, 2013 #4 Sure, i also forgot to mention that one Upvote 0