public static void sendEmail(String email, String subject, String emailBody) {
        Intent emailIntent = new Intent(Intent.ACTION_SEND);
        emailIntent.setType("message/rfc822");
        emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});
        emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
        emailIntent.putExtra(Intent.EXTRA_TEXT, emailBody);

        emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

        try {
            QuickUtils.getContext().startActivity(emailIntent);
        } catch (android.content.ActivityNotFoundException ex) {
            QuickUtils.system.toast("There are no email clients installed.");
        }
    }
public static void sendEmail ( String email , String subject , String emailBody ) { Intent emailIntent = new Intent ( Intent . ACTION_SEND ) ; emailIntent . setType ( "message/rfc822" ) ; emailIntent . putExtra ( Intent . EXTRA_EMAIL , new String [ ] { email } ) ; emailIntent . putExtra ( Intent . EXTRA_SUBJECT , subject ) ; emailIntent . putExtra ( Intent . EXTRA_TEXT , emailBody ) ; emailIntent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; try { QuickUtils . getContext ( ) . startActivity ( emailIntent ) ; } catch ( android . content . ActivityNotFoundException ex ) { QuickUtils . system . toast ( "There are no email clients installed." ) ; } }
Share via Email

@param email     destination email (e.g. support@company.com)
@param subject   email subject
@param emailBody email body