Android Question email with attachment not sending

leitor79

Active Member
Licensed User
Longtime User
Hi,

I'm trying to send an email from my app, but I'm getting no mail (also not in spam folder) and no error. The code I use is like this:

Dim ei As Email
ei.To.Add("myemail@email.com")
ei.Body = "nice body"
ei.Subject = "the subject"
ei.Attachments.Add(mypath/myfile string variable)
Try
StartActivity(ei.GetIntent)
Catch
Log ("Error!")
End Try

Where I should begin to look for the problem?

thank you!


PS: I've tried without the attachment and also no luck.
 

leitor79

Active Member
Licensed User
Longtime User
Hi;

Today It's working, I don't know why, I see now when I run the program I get the selector to choose the email client to send the mail with. I didn't expect that, it didn't appeared but today it does.

So, If it's not working, maybe turning the phone off and on will solve the problem.


thanks!
 
Upvote 0

merlin2049er

Well-Known Member
Licensed User
Longtime User
I thought Email.to required an array? I'm trying to send an email to one individual.

I also tried adding an email to a list, and sending that. I'll take a look at it again.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…