Home > Mobile >  Use the Intent to send mail
Use the Intent to send mail

Time:10-11

String recevier="142543363 @qq.com";

String ccStrings="547643234 @163.com";

Intent Intent=new Intent ();

Intent. PutExtra (intent. EXTRA_EMAIL recevier);

Intent. PutExtra (intent. EXTRA_CC ccStrings);

Intent. PutExtra (intent. EXTRA_SUBJECT, "Theme");

Intent. PutExtra (intent. EXTRA_TEXT, "This is a text email");

StartActivity (intent);
Click the register Button Button for listening, and running the simulator Button Button there is an error

CodePudding user response:

See the error log

CodePudding user response:

Intent Intent=new Intent (Intent. ACTION_SEND);
Intent. SetType (" the message/rfc822 ");

CodePudding user response:

CodePudding user response:

Do you use the simulator? See if there are email app simulator
  • Related