hi
after lots of digging i finally got this sub to work perfectly
this is the only way i found that opens the email apps only and not all sharing apps (in some cases it adds paypal as an email app but generally it is perfect)
the only issue i have now is is it possible to add an attachment this sub?
how?
i tried with provider and made sure the file was copied and exist in shared dir but no attachment was added to the mail
does this method allows to add attachment?
thanks
after lots of digging i finally got this sub to work perfectly
this is the only way i found that opens the email apps only and not all sharing apps (in some cases it adds paypal as an email app but generally it is perfect)
the only issue i have now is is it possible to add an attachment this sub?
how?
i tried with provider and made sure the file was copied and exist in shared dir but no attachment was added to the mail
does this method allows to add attachment?
thanks
B4X:
Sub SendMail(SendTO As String, SendCC As String, SendBCC As String, Subject As String, Body As String)
Dim in As Intent
Try
in.Initialize("android.intent.action.SENDTO", "mailto:")
in.PutExtra("android.intent.extra.EMAIL", Array As String(SendTO))
in.PutExtra("android.intent.extra.CC", Array As String(SendCC))
in.PutExtra("android.intent.extra.BCC", Array As String(SendBCC))
in.PutExtra("android.intent.extra.SUBJECT", Subject)
in.PutExtra("android.intent.extra.TEXT", Body)
StartActivity(in)
Catch
Log (LastException.Message)
End Try
End Sub