- Приложения для электронной почты для Android
- Отправка E-Mail средствами Android
- Часть 1. Mail, просто Mail
- Часть 2. Mail, анонимус Mail
- 10 best email apps for Android to manage your inbox
- Blue Mail
- Cleanfox
- Gmail
- K-9 Mail
- Newton Mail
- ProtonMail
- Spark Email
- TypeApp Email
- Individual clients like Outlook
- Bonus: OEM stock email apps
Приложения для электронной почты для Android
Пишите электронные письма, читайте все новые сообщения в ящике входящей почты и организовывайте все свои контакты с помощью почтовых клиентов.
Приложение Outlook для Android
Почтовое приложение от Mail.Ru для Android
Официальное приложение электронной почты Google
Менеджер электронной почты с несколькими учетными записями Google
Почтовый клиент ВКонтакте
Электронная почта российской многонациональной компании
Объединенный менеджер почтовых ящиков
Электронная почта, новости, видео и погода в одном приложении
Альтернатива Gmail с множеством инструментов
Лучшая альтернатива Gmail
Управление разными почтовыми учетными записями с помощью одного клиента
Почтовый клиент, совместимый с несколькими сервисами
Одноразовый почтовый сервис
Официальное приложение службы электронной почты GMX
Немецкий менеджер почты
Менеджер по электронной почте
Приложение электронной почты, совместимое с несколькими поставщиками
Избавьтесь от спама при падении шляпы
Клиент электронной почты, чтобы взять под контроль ваш почтовый ящик
Отправка зашифрованного сообщения end-to-end
Расширение функций вашего почтового клиента
Универсальный почтовый клиент
Открытым исходным кодом нескольких учетных записей электронной почты клиента
Версия Go от Gmail
Оптимизированный почтовый клиент для смартфонов Samsung
Почтовый клиент для управления несколькими учетными записями
Безопасный почтовый сервис CERN
Send писем, как если бы они были сообщения
Полный notifier для электронной почты и других приложений
Почтовый уведомитель с поддержкой звонков и сообщений
Оповещения для учетных записей электронной почты Gmail и K-9
Проверьте вашу электронную почту образом, интеллигентая(ый)
Один из лучших менеджеров электронной почты
Покупай и продавай со своего мобильного телефона
Большой почтовый клиент для вашего Android устройства
Клиент для нескольких учетных записей электронной почты
Почтовый клиент Yahoo для Android
Сохраняйте конфиденциальность вашей информации
Приложение для доступа к учетной записи электронной почты с Android устройства
Источник
Отправка E-Mail средствами Android
Привет хабр и привет всем!
В данной статье я покажу как реализуется отправка писем средствами самого Android, а также ещё один более интересный способ, но уже с применением внешней библиотеки, которая позволяет нам отсылать письма более приемлимыми для программиста способами.
Часть 1. Mail, просто Mail
- public class SimpleEMail extends Activity <
- Button send;
- EditText address, subject, emailtext;
- @Override
- public void onCreate(Bundle savedInstanceState) <
- super.onCreate(savedInstanceState);
- setContentView(R.layout.simple_email);
- // Наши поля и кнопка
- send = (Button) findViewById(R.id.emailsendbutton);
- address = (EditText) findViewById(R.id.emailaddress);
- subject = (EditText) findViewById(R.id.emailsubject);
- emailtext = (EditText) findViewById(R.id.emailtext);
- send.setOnClickListener( new OnClickListener() <
- @Override
- public void onClick(View v) <
- final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
- emailIntent.setType( «plain/text» );
- // Кому
- emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,
- new String [] < address.getText().toString() >);
- // Зачем
- emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
- subject.getText().toString());
- // О чём
- emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,
- emailtext.getText().toString());
- // С чем
- emailIntent.putExtra(
- android.content.Intent.EXTRA_STREAM,
- Uri .parse( «file://»
- + Environment.getExternalStorageDirectory()
- + «/Клипы/SOTY_ATHD.mp4» ));
- emailIntent.setType( «text/video» );
- // Поехали!
- SimpleEMail. this .startActivity(Intent.createChooser(emailIntent,
- «Отправка письма. » ));
- >
- >);
- >
- >
* This source code was highlighted with Source Code Highlighter .
Вот, код до безобразия прост. Правда можно еще проще: если нам лень создавать дополнительное Activity для ввода наших полей, то можно было бы просто запустить наш Intent.
Плюсы: Простая реализация, достаточно удобно для обратной связи.
Минусы: У пользователя должна быть настроенная программа приёма-передачи почтовых сообщений, без неё обрабатывать данный Intent будет некому.
Часть 2. Mail, анонимус Mail
Данный метод я использовал в своём проекте, обозначим для начала плюсы:
- Не требует от пользователя настроенного клиента
- Может быть полностью анонимным
- Можно передавать все (в пределах разумного, конечно)
Для работы необходимы дополнительные библиотеки javamail-android.
Качаем их, и встраиваем в проект: Контекстное меню проекта > «Build Path» > «Add External Archives. » > «Наши файлы additional, mail, activation»
Для настройки нам также понадобится почтовый ящик зарегистрированный на gmail.com (или любом другом yandex, mail и.т.п.) настройки вы можете посмотреть здесь. В данном случае он будет выступать в виде шлюза через которые будут проходить наши письма.
Начинаем настраивать:
MailSenderClass.java
В данном классе записаны настройки того сервера, через который будет передаваться ваше сообщение. Здесь у нас есть несколько методов:
- public MailSenderClass(String user, String password) — Конструктор. В качестве аргументов передаются логин и пароль от нашего промежуточного ящика на gmail.com. Здесь же прописываются параметры smtp-подключения к серверу.
- protected PasswordAuthentication getPasswordAuthentication() — Аутентификация для сервера.
- public synchronized void sendMail(String subject, String body, String sender, String recipients, String filename) — Основной метод, в который передаются наши данные для отправки.
Рассмотрим код последнего метода чуть ближе:
- public synchronized void sendMail( String subject, String body, String sender, String recipients, String filename) throws Exception <
- try <
- MimeMessage message = new MimeMessage(session);
- // Кто
- message.setSender( new InternetAddress(sender));
- // О чем
- message.setSubject(subject);
- // Кому
- if (recipients.indexOf( ‘,’ ) > 0)
- message.setRecipients(Message.RecipientType.TO,
- InternetAddress.parse(recipients));
- else
- message.setRecipient(Message.RecipientType.TO,
- new InternetAddress(recipients));
- // Хочет сказать
- BodyPart messageBodyPart = new MimeBodyPart();
- messageBodyPart.setText(body);
- _multipart.addBodyPart(messageBodyPart);
- // И что показать
- if (!filename.equalsIgnoreCase( «» )) <
- BodyPart attachBodyPart = new MimeBodyPart();
- DataSource source = new FileDataSource(filename);
- attachBodyPart.setDataHandler( new DataHandler(source));
- attachBodyPart.setFileName(filename);
- _multipart.addBodyPart(attachBodyPart);
- >
- message.setContent(_multipart);
- Transport.send(message);
- > catch (Exception e) <
- Log.e( «sendMail» , «Ошибка отправки функцией sendMail! » );
- >
- >
* This source code was highlighted with Source Code Highlighter .
Метод также прост. Используя объект класса MimeMessage составляем наше письмо и для отправки передаём методу send, класса Transport.
JSSEProvider.java
Провайдер протокола безопасности для нашей почты. Линк.
VideoSelect.java
Код был взят из ApiDemos, которые поставляются в комплекте с Android SDK, и был чуть подправлен для выполнения с помощью метода startActivityForResult.
После выполнения возвращается строка, содержащая путь к файлу на карте памяти. Код можно будет посмотреть в проекте, он в конце статьи.
ExtendedMail.java
Основной метод отправления сообщения выполняется в функции sitv_sender_mail_async, представляющей класс AsyncTask:
- private class sender_mail_async extends AsyncTask String , Boolean><
- ProgressDialog WaitingDialog;
- @Override
- protected void onPreExecute() <
- // Выводим пользователю процесс загрузки
- WaitingDialog = ProgressDialog.show(ExtendedMail. this , «Отправка данных» , «Отправляем сообщение. » , true );
- >
- @Override
- protected void onPostExecute(Boolean result) <
- // Прячем процесс загрузки
- WaitingDialog.dismiss();
- Toast.makeText(mainContext, «Отправка завершена. » , Toast.LENGTH_LONG).show();
- ((Activity)mainContext).finish();
- >
- @Override
- protected Boolean doInBackground(Object. params ) <
- try <
- // Получаем данные с наших полей
- title = ((EditText)findViewById(R.id.screen_sendnews_et_title)).getText().toString();
- text = ((EditText)findViewById(R.id.screen_sendnews_et_text)).getText().toString();
- from = «from_post_msg@gmail.com» ;
- where = «where_post_msg@yandex.ru» ;
- // Вызываем конструктор и передаём в него наши логин и пароль от ящика на gmail.com
- MailSenderClass sender = new MailSenderClass( «mypostmail@gmail.com» , «password» );
- // И вызываем наш метод отправки
- sender.sendMail(title, text, from , where , attach);
- > catch (Exception e) <
- Toast.makeText(mainContext, «Ошибка отправки сообщения!» , Toast.LENGTH_SHORT).show();
- >
- return false ;
- >
- >
* This source code was highlighted with Source Code Highlighter .
- public void onClick(View v) <
- sender_mail_async async_sending = new sender_mail_async();
- async_sending.execute();
- >
* This source code was highlighted with Source Code Highlighter .
Таким образом создав небольшой класс-поток, можно спокойно слать необходимую информацию от клиента к себе на ящик.
Источник
10 best email apps for Android to manage your inbox
We’d also like to give an honorable mention to Hey (Google Play link). It’s really interesting and entertaining email app, but it gives you a new email address and is really expensive so it’s difficult to put it on the list. It has some decent features, though, so check it out if you want another option.
Read more:
Blue Mail
Price: Free
Blue Mail is one of the most popular email apps out there. It supports a variety of clients, including Gmail, Yahoo, Outlook, Office 365, and virtually any other POP3, IMAP, or Exchange clients. The app has a variety of notification settings for each one of your email accounts and also comes with some fun stuff like Android Wear support, configurable menus, and even a dark theme. It also has some smart features if you want them. It’s powerful and it’s completely free. There is a potential privacy issue since Blue Mail uses its own servers, but most likely won’t mind.
Cleanfox
Price: Free
Cleanfox isn’t an email client, but it’s a useful app for email users. It basically helps you unsubscribe from the likely large number of things you somehow ended up subscribed to. You connect your email accounts to the app and it runs through and finds all of your subscriptions. It then unsubscribes you from them if you want it to. It can also delete old emails from those subscriptions and help you manage things in other ways. It’s a free app and it’s honestly not difficult to use at all. Most of the complaints are regarding bugs and bugs do exist, but Cleanfox does what it can and it does work for most.
Gmail
Price: Free
Gmail is a bit of a cheap pick for email apps. It comes pre-installed on most Android devices. Thus, you probably already have it. The app supports multiple inbox settings, multiple accounts, and more. It supports most email services as well, including Yahoo, Microsoft Outlook, and others. It also supports a unified inbox, Material Design, and more. The team also added a bunch of Inbox by Google features before that client was taken down. It’s an excellent option for most folks.
K-9 Mail
Price: Free
K-9 Mail is one of the oldest email apps out there. Many enjoy it for its minimal interface, no BS experience, and unified inbox. It supports most IMAP, POP3, and Exchange 2003/2007 accounts. Otherwise, what you see is pretty much what you get. The UI isn’t overly inspiring, but it makes up for it by not having any quirky features that only half work. This is old school and reliable. The app is also open source. You can build it yourself or contribute to the community via Github. It’s definitely not flashy. However, it is functional and lightweight. It’s also completely free.
Price: Free / $9.99-$14.99
Nine is one of the better email apps out there if you’re concerned about security and also use Outlook. It boasts no server or cloud features whatsoever. The app just connects you to the email services. On top of that, it has support for Exchange ActiveSync which is to be expected for any app that boasts Exchange support. You have a variety of options, including selecting which folders you want to sync, Wear OS support, and more. It’s rather expensive as far as email clients goes and there are a few bugs here and there. However, definitely geared more toward business users.
See more:
Newton Mail
Price: Free trial / $49.99 per year
Newton Mail has a complicated past. It was CloudMagic, re-branded to Newton Mail, died, and was brought back by Essential (the phone maker). It stands as one of the best email apps on the list. The app has a clean, one of the best and cleanest UIs along with a slew of little goodies. That includes email snoozing, two-factor authentication, the ability to send emails later, read receipts, and one-click unsubscribe features. You can also connect a host of other apps in for better integration. Don’t get us wrong, this is way too expensive for basic email consumption. However, apps like this have a niche and Newton is among the best in that niche. Newton Mail was set to shut down on April 30th, 2020, but it seems as though they found a way to keep the doors open.
ProtonMail
Price: Free
ProtonMail is a great email client for security-minded folks. The app boasts end-to-end email encryption. That basically means the only two people who can read your emails are you and the person you’re emailing. The app also boasts OpenPGP support, self-destructing emails (where supported), and most of the typical stuff like labels and organization features. This one does store emails on a server. However, that server is completely encrypted and no one can read them, not even ProtonMail. Many of the features require a ProtonMail account, but this is about as good as it gets in terms of security unless you set up your own server.
Spark Email
Price: Free
Spark Email is the new kid on the block, so to speak. It launched in early 2019 to positive reviews. It has a lot of the basics, including email snoozing, sending emails later, reminders, pinned emails, and you can undo sent mail. Additionally, the UI is clean and you can view each email address separately or together in a universal inbox. We’re big fans of universal inboxes around here. The app’s big claim to fame is its Smart Inbox that filters out trash email in favor of only the important stuff. It’s a neat feature, but even without it, Spark is an excellent email client with support for most email addresses.
TypeApp Email
Price: Free / Up to $6.99
TypeApp Email is a fairly run-of-the-mill email client. It does all of the stuff you would expect. That includes support for most email services, a unified inbox, push notifications, rich text emails, wireless printing support, and some other useful features as well. You also get Wear OS support, a dark mode, themes, and other customization features. It certainly won’t blow your mind. However, it’s a good, simple email app that does what it says it does. We also liked the Material Design UI in our testing and the relatively simple method of switching accounts. It reminds us a lot of Blue Mail in terms of its UI. In any case, it’s good, it’s just not exciting.
Individual clients like Outlook
Price: Free (usually)
The thing is that most third party email apps work just fine. However, there is an advantage to just using the individual app for your email service. We listed Gmail above because it comes pre-installed on most devices anyway. However, others like Microsoft Outlook or Yahoo Mail don’t. They hook directly into the service and can do things that third party clients simply can’t. For instance, Outlook has a Focused Inbox feature that sorts emails based on importance. It also integrates directly with Microsoft’s calendar service. Yahoo Mail includes features like Travel View, more granular notification options, and theming. If you have only one email and it’s not a Gmail account, you may want to consider using the official app so you can get the most out of it.
Bonus: OEM stock email apps
Price: Free (usually)
The stock email apps that come on phones actually do work pretty well. They usually support the basics, like multiple email logins, various email clients, forwarding, archiving, deletion, and more. Many are likely on this list looking for something more than that. However, the stock email apps on your device are usually about as simple, clean, and easy as it gets. Additionally, virtually none of them have ads, cost any money, or anything like that. Plus, they’re already on your phone anyway so they can’t take up any extra storage. It’s a good option if you need something super simple. Those who need power user features shouldn’t use these.
Thank you for reading! Try these out too:
If we missed any of the best email apps for Android, tell us about them in the comments! You can also click here to check out our latest Android app and game lists!
Источник