android - setting the sender of an email using startActivity(mailIntent) -


i send in android app emails using code:

  intent emailintent = new intent(android.content.intent.action_send);             emailintent.settype("plain/text");             emailintent.putextra(android.content.intent.extra_email, new string[]{"recipient"+"@email.com"});             emailintent.putextra(android.content.intent.extra_subject, "subject");             emailintent.putextra(android.content.intent.extra_text, "text");             startactivity(intent.createchooser(emailintent, "send mail...")); 

but mail program uses wrong mail account. try select senders email address/mail account. there like:

    emailintent.putextra(android.content.intent.extra_senders_mail_address, "my_email_address@email.com"); 

or

    emailintent.putextra(android.content.intent.extra_users_email_account, "mail_account_x"); 

?

no there nothing mentioned above. default choose default email id used activate phone sender. user can change other accounts if added onto phone well.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -