Back to project page sms-smap-gateway.
The source code is released under:
GNU General Public License
If you think the Android project sms-smap-gateway listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.android.smap.utils; /*from ww w. ja v a 2s .c o m*/ import java.util.List; import android.content.Intent; public class MWEmailUtils { /** * Easily create email intent * * @param recipientsList * @param ccList * @param subject * @param htmlBody * @return email intent chooser */ public static Intent createEmailIntent(List<String> recipientsList, List<String> ccList, String subject, CharSequence htmlBody) { Intent emailIntent = new Intent(Intent.ACTION_SENDTO); // emailIntent.setData(Uri.parse("mailto:")); if (recipientsList != null) { for (String email : recipientsList) { emailIntent.putExtra(Intent.EXTRA_EMAIL, email); } } if (ccList != null) { for (String email : ccList) { emailIntent.putExtra(Intent.EXTRA_EMAIL, email); } } if (subject != null) emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject); if (htmlBody != null) emailIntent.putExtra(Intent.EXTRA_TEXT, htmlBody); return emailIntent; } }