

{"id":76491,"date":"2020-02-29T09:40:40","date_gmt":"2020-02-29T04:10:40","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=76491"},"modified":"2021-08-25T14:04:49","modified_gmt":"2021-08-25T08:34:49","slug":"send-email-from-android","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/","title":{"rendered":"Send Email from Android &#8211; Study how to enable emails in your Android application"},"content":{"rendered":"<p>So coming to the third service of Android that is Email. At this point, we are now well aware of the other two services that are SMS and Call. If you haven\u2019t seen the tutorials on <a href=\"https:\/\/data-flair.training\/blogs\/send-sms-in-android\/\"><em><strong>SMS<\/strong><\/em><\/a> and <a href=\"https:\/\/data-flair.training\/blogs\/calling-app-in-android\/\"><em><strong>Call<\/strong><\/em><\/a>, you can see them through. Okay coming back to the Email Service. So emails today play a crucial role in our lives. And we all are well aware of Emails, Right? Don\u2019t worry if you are not. It\u2019s just a message, that is, distributed by electronic means from one device to others over the network. In this article, we will learn to send email from Android.<\/p>\n<p>So let us know that for email service also, we would need Intent. It carries data from one component to other components either within an application or outside it.<\/p>\n<p><em><strong>Know the concept of Intents with DataFlair&#8217;s <a href=\"https:\/\/data-flair.training\/blogs\/android-intent\/\">Android Intent<\/a> article.<\/strong><\/em><\/p>\n<p>Now to enable emails from our application, we can simply use an existing app provided by Android. We need not implement the whole email client from the start. Some of the default applications are <em>Gmail, MS Outlook, Spark, etc<\/em>. To use these applications, we will launch an Activity using Implicit Intent.<\/p>\n<h2>How to Use Intent to Send Email from Android?<\/h2>\n<p>Let us see first, how we are going to use the Intent for sending mails through our application.<\/p>\n<h4>1. Action in Intent to Send an Email<\/h4>\n<p>The action that we will use is <strong>ACTION_SEND<\/strong>.<\/p>\n<p>And we will use the following syntax and write it like this to add Action Send.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Intent myIntent = new Intent(Intent.ACTION_SEND);<\/pre>\n<h4>2. Data in Intent to Send an Email<\/h4>\n<p>To send the email, we will specify the email-Id using setData in <strong>mailto<\/strong>: as URI data. We will do it as follows:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">myIntent.setData(Uri.parse(\"mailto:\"));\r\nmyIntent.setType(\"text\/plain\");<\/pre>\n<h3>putExtra() Method in Android<\/h3>\n<p>We use the method known as <strong>putExtra()<\/strong> to add some extra information in our Intent. It can add the following in the information as Extra:<\/p>\n<ul>\n<li><strong>EXTRA_CC &#8211;<\/strong> It holds string[] of email addresses that should be carbon copied.<\/li>\n<li><strong>EXRTA_BCC &#8211;<\/strong> It holds string[] of email addresses that should be blind carbon copied.<\/li>\n<li><strong>EXTRA_SUBJECT &#8211;<\/strong> It is a constant string that holds the subject line of a message.<\/li>\n<li><strong>EXTRA_EMAIL &#8211;<\/strong> It\u2019s a string that holds an email to be delivered.<\/li>\n<li><strong>EXTRA_TEXT &#8211;<\/strong> It is a string that associates with the Intent ACTION_SEND to supply literal data.<\/li>\n<li><strong>EXTRA_HTML_TEXT &#8211;<\/strong> It is a string that associates with the Intent as an alternative to send EXTRA_TEXT in HTML.<\/li>\n<\/ul>\n<h3>How to Send Email from Android?<\/h3>\n<p>Now, let&#8217;s learn to send email from Android using our application. Let&#8217;s begin:<\/p>\n<p><strong>Step 1:<\/strong> First of all we will create a new project and fill in the details.<\/p>\n<p>Then, we will define the details of the layout of our application in the <strong>activity_main.xml<\/strong> file. For this, we will write the following code:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n   android:layout_width=\"match_parent\"\r\n   android:layout_height=\"match_parent\"\r\n   android:orientation=\"vertical\"\r\n   android:paddingLeft=\"20dp\"\r\n   android:paddingRight=\"20dp\"&gt;\r\n\r\n   &lt;TextView\r\n       android:id=\"@+id\/tV1\"\r\n       android:layout_width=\"wrap_content\"\r\n       android:layout_height=\"wrap_content\"\r\n       android:layout_centerHorizontal=\"true\"\r\n       android:layout_marginLeft=\"90dp\"\r\n       android:layout_marginTop=\"60dp\"\r\n       android:fontFamily=\"@font\/abril_fatface\"\r\n       android:text=\"DataFlair \"\r\n       android:textColor=\"@color\/colorPrimaryDark\"\r\n       android:textSize=\"50dp\" \/&gt;\r\n\r\n   &lt;EditText\r\n       android:id=\"@+id\/textTo\"\r\n       android:layout_width=\"match_parent\"\r\n       android:layout_height=\"wrap_content\"\r\n       android:hint=\"Mail To\" \/&gt;\r\n\r\n   &lt;EditText\r\n       android:id=\"@+id\/textSubject\"\r\n       android:layout_width=\"match_parent\"\r\n       android:layout_height=\"wrap_content\"\r\n       android:hint=\"Subject:\" \/&gt;\r\n\r\n   &lt;EditText\r\n       android:id=\"@+id\/textMessage\"\r\n       android:layout_width=\"match_parent\"\r\n       android:layout_height=\"0dp\"\r\n       android:layout_weight=\"1\"\r\n       android:gravity=\"top\"\r\n       android:hint=\"Content:\" \/&gt;\r\n\r\n   &lt;Button\r\n       android:id=\"@+id\/buttonSend\"\r\n       android:layout_width=\"100dp\"\r\n       android:layout_height=\"wrap_content\"\r\n       android:layout_gravity=\"right\"\r\n       android:text=\"Send\" \/&gt;\r\n&lt;\/LinearLayout&gt;<\/pre>\n<p><strong>Step 2:<\/strong> After this, we will open the <strong>MainActivity.java<\/strong> file, and write the following code:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.DataFlair.sendemailexample;\r\n\r\nimport android.content.Intent;\r\nimport android.os.Bundle;\r\nimport android.view.View;\r\nimport android.widget.Button;\r\nimport android.widget.EditText;\r\n\r\nimport androidx.appcompat.app.AppCompatActivity;\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n\r\n   private EditText mailTo;\r\n   private EditText mailSubject;\r\n   private EditText mailContent;\r\n   private Button subbtn;\r\n\r\n   @Override\r\n   protected void onCreate(Bundle savedInstanceState) {\r\n       super.onCreate(savedInstanceState);\r\n       setContentView(R.layout.activity_main);\r\n       mailTo = (EditText) findViewById(R.id.txtTo);\r\n       mailSubject = (EditText) findViewById(R.id.txtSub);\r\n       mailContent = (EditText) findViewById(R.id.txtMsg);\r\n       subbtn = (Button) findViewById(R.id.btnSend);\r\n       subbtn.setOnClickListener(new View.OnClickListener() {\r\n           @Override\r\n           public void onClick(View v) {\r\n               Intent it = new Intent(Intent.ACTION_SEND);\r\n               it.putExtra(Intent.EXTRA_EMAIL, new String[]{mailTo.getText().toString()});\r\n               it.putExtra(Intent.EXTRA_SUBJECT, mailSubject.getText().toString());\r\n               it.putExtra(Intent.EXTRA_TEXT, mailContent.getText());\r\n               it.setType(\"message\/rfc822\");\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0startActivity(Intent.createChooser(it, \"Choose Mail App\"));\r\n           }\r\n       });\r\n   }\r\n}<\/pre>\n<p><strong>Step 3:<\/strong> Now, we will declare the following in the <strong>manifest file<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;manifest xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n   package=\"com.DataFlair.sendemailexample\"&gt;\r\n\r\n   &lt;application\r\n       android:allowBackup=\"true\"\r\n       android:icon=\"@mipmap\/ic_launcher\"\r\n       android:label=\"@string\/app_name\"\r\n       android:roundIcon=\"@mipmap\/ic_launcher_round\"\r\n       android:supportsRtl=\"true\"\r\n       android:theme=\"@style\/AppTheme\"&gt;\r\n       &lt;activity android:name=\".MainActivity\"&gt;\r\n           &lt;intent-filter&gt;\r\n               &lt;action android:name=\"android.intent.action.MAIN\" \/&gt;\r\n               &lt;category android:name=\"android.intent.category.LAUNCHER\" \/&gt;\r\n               &lt;action android:name=\"android.intent.action.SEND\" \/&gt;\r\n               &lt;category android:name=\"android.intent.category.DEFAULT\" \/&gt;\r\n               &lt;data android:mimeType=\"message\/rfc822\" \/&gt;\r\n           &lt;\/intent-filter&gt;\r\n       &lt;\/activity&gt;\r\n       &lt;meta-data\r\n           android:name=\"preloaded_fonts\"\r\n           android:resource=\"@array\/preloaded_fonts\" \/&gt;\r\n   &lt;\/application&gt;\r\n&lt;\/manifest&gt;<\/pre>\n<p><strong>Step 4:<\/strong> Now, we will run our code and following will be the output:<\/p>\n<p><strong>i)<\/strong> The <a href=\"https:\/\/en.wikipedia.org\/wiki\/Android_(operating_system)\">application<\/a> will look like this:<a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/email-application.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-76510 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/email-application.jpg\" alt=\"email application\" width=\"300\" height=\"533\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/email-application.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/email-application-84x150.jpg 84w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/email-application-169x300.jpg 169w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>ii)<\/strong> Now we will enter the required details in the blanks above.<a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/add-required-details.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-76511 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/add-required-details.jpg\" alt=\"add details to send email in android\" width=\"300\" height=\"533\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/add-required-details.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/add-required-details-84x150.jpg 84w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/add-required-details-169x300.jpg 169w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>iii)<\/strong> Now we will click on send and select the application that we want to use for further details:<a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-and-select-application.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-76512 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-and-select-application.jpg\" alt=\"send and select application\" width=\"300\" height=\"533\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-and-select-application.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-and-select-application-84x150.jpg 84w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-and-select-application-169x300.jpg 169w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>iv)<\/strong> And we will finally send the email, I chose Gmail.<a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-76513 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email.jpg\" alt=\"send email from android\" width=\"300\" height=\"533\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email-84x150.jpg 84w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email-169x300.jpg 169w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>Summary<\/h2>\n<p>In this article we covered the third service of the three that were &#8211; SMS, Call, and Email. So here we have learned what is mail and how we can use it in our applications. We also implemented an example for it to learn it better. So yes, this was all for Send Email from Android article, we will catch up in the next article.<\/p>\n<p>If you have any doubts in DataFlair&#8217;s Send Email from Android article, ask in the comment section.<\/p>\n<p>Happy Learning\ud83d\ude03<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1174,&quot;href&quot;:&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Android_(operating_system)&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251207151848\\\/https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Android_(operating_system)&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 02:38:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-18 22:38:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-27 11:33:32&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-31 18:07:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-05 18:38:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-09 06:56:08&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-12 13:15:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-16 10:12:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-21 23:08:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-27 14:35:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-04 01:35:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-13 21:07:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-23 05:26:27&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-26 15:09:45&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-06 01:09:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-09 08:24:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-23 06:01:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-30 14:02:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-06 06:31:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-09 08:04:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 09:51:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-16 01:43:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-19 12:07:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-26 22:58:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-30 14:06:12&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-04 10:20:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-08 04:33:21&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-11 10:26:08&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-16 06:36:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-20 11:48:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-23 20:58:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-29 06:15:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-02 07:17:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-09 16:27:56&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-15 08:57:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-20 02:47:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-25 02:27:27&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-25 02:27:27&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So coming to the third service of Android that is Email. At this point, we are now well aware of the other two services that are SMS and Call. If you haven\u2019t seen the&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":76509,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18722],"tags":[22016,22015,22014,22013,22017],"class_list":["post-76491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","tag-how-to-send-email-from-android","tag-how-to-use-intent-to-send-email-from-android","tag-putextra-method-in-android","tag-send-email-from-android","tag-send-email-in-android"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Send Email from Android - Study how to enable emails in your Android application - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn the third feature of Android, that is, Email, how to send email from android, how to use intent to send email from android, and what is putExtra() method.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/send-email-from-android\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Send Email from Android - Study how to enable emails in your Android application - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn the third feature of Android, that is, Email, how to send email from android, how to use intent to send email from android, and what is putExtra() method.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/send-email-from-android\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-29T04:10:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-25T08:34:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email-from-android.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Send Email from Android - Study how to enable emails in your Android application - DataFlair","description":"Learn the third feature of Android, that is, Email, how to send email from android, how to use intent to send email from android, and what is putExtra() method.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/","og_locale":"en_US","og_type":"article","og_title":"Send Email from Android - Study how to enable emails in your Android application - DataFlair","og_description":"Learn the third feature of Android, that is, Email, how to send email from android, how to use intent to send email from android, and what is putExtra() method.","og_url":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2020-02-29T04:10:40+00:00","article_modified_time":"2021-08-25T08:34:49+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email-from-android.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Send Email from Android &#8211; Study how to enable emails in your Android application","datePublished":"2020-02-29T04:10:40+00:00","dateModified":"2021-08-25T08:34:49+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/"},"wordCount":665,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email-from-android.jpg","keywords":["How to Send Email from Android?","How to Use Intent to Send Email from Android?","putExtra() Method in Android","Send Email from Android","send email in android"],"articleSection":["Android Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/send-email-from-android\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/","url":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/","name":"Send Email from Android - Study how to enable emails in your Android application - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email-from-android.jpg","datePublished":"2020-02-29T04:10:40+00:00","dateModified":"2021-08-25T08:34:49+00:00","description":"Learn the third feature of Android, that is, Email, how to send email from android, how to use intent to send email from android, and what is putExtra() method.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/send-email-from-android\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email-from-android.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/02\/send-email-from-android.jpg","width":802,"height":420,"caption":"send email in android"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/send-email-from-android\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Android Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/android\/"},{"@type":"ListItem","position":3,"name":"Send Email from Android &#8211; Study how to enable emails in your Android application"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/76491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=76491"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/76491\/revisions"}],"predecessor-version":[{"id":76605,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/76491\/revisions\/76605"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/76509"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=76491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=76491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=76491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}