Send email via Android app -


i've been trying write program can send emails , i've gone this topic.

however, neither of answers work. tried the code given in accepted answer , android sdk giving me alert: no application may perform action. other code, given yuku, gives unsopported action: action not supported alert.

can me this? step step tutorials? way, prefer solution doesn't require prompt asking email server user using, that's optional , now.

i tried: sending e-mail in android

there 2 ways, first, best , easiest ways using email intent.

intent intent = new intent(intent.action_send); intent.settype("text/plain"); intent.putextra(intent.extra_email, "email@domain.ext"); intent.putextra(intent.extra_subject, "subject"); intent.putextra(intent.extra_text, "body");  startactivity(intent.createchooser(intent, "send email")); 

another way code server-side script sends email, in php, python other server-side language , connect app send emails.


Comments