Android Question "android.intent.extra.EXTRA_EMAIL"

MotoMusher

Active Member
Licensed User
Longtime User
First, is there a way in search (this forum, top right) to only return exact matches?

I am trying to send an email via intent. It works fine, except the "TO" field. Stack overflow says I need an array of strings. Have tried several ways to no avail.

Any suggestions?

B4X:
In.PutExtra("android.intent.extra.EXTRA_EMAIL",  Array As String("[email protected]"))
 

MotoMusher

Active Member
Licensed User
Longtime User
That worked NJDude. Thanks. I thought I tried that, but it may have been with a different method of the array.

Erel, to answer your question, there was no real reason, I ran across the intent version and it worked so I went with it. I was using the NET library for SMTP, but i just get too many failure responses where google kicks an error back, but the message sends anyway, and then I have to resubmit a duplicate email to ensure it went, or prompt the user with a bunch of failures so they can check if it was sent and it's not going over well at all. Usually happens with lower levels of connectivity, but not always. This new one I am working on needs to ensure that the emails, and only sends once, so the intent method is what I am using. It's a little kludgy having the user click send in the email, but it is what it is. I may explore the email option from Phone since you suggested it however.
 
Upvote 0
Top