- 1and1 email settings for Android
- Mail settings 1and1
- Android guide to setup 1and1 mail
- 1 Open your Email application from the menu, add a new account and choose ‘Other’.
- 2 In the next screen enter your account details and click on ‘Login’:
- 3 Choose imap and enter the following details under ‘Server incoming mail’:
- 4 At ‘Outgoing mail server’ enter the details below and choose ‘Login’:
- 5 Your account is now ready to use.
- Question and Answer
- Отправка E-Mail средствами Android
- Часть 1. Mail, просто Mail
- Часть 2. Mail, анонимус Mail
- 1and1.com email settings for Android
- Mail settings 1and1.com
- Android guide to setup 1and1.com mail
- 1 Open your Email application from the menu, add a new account and choose ‘Other’.
- 2 In the next screen enter your account details and click on ‘Login’:
- 3 Choose imap and enter the following details under ‘Server incoming mail’:
- 4 At ‘Outgoing mail server’ enter the details below and choose ‘Login’:
- 5 Your account is now ready to use.
- Question and Answer
1and1 email settings for Android
Mail settings 1and1
POP / IMAP | imap |
Incoming server | imap.1and1.co.uk |
Incoming port | 993 |
SSl (security) incoming | ssl |
Outgoing server | auth.smtp.1and1.co.uk |
Outgoing port | 587 |
Requires sign-in | yes |
Android guide to setup 1and1 mail
1 Open your Email application from the menu, add a new account and choose ‘Other’.
If you do not have an account yet, you can start setting up right away. Otherwise, open ‘Settings’ in the email app and choose ‘Add account’.
2 In the next screen enter your account details and click on ‘Login’:
Email: your 1and1 email address
Password: your 1and1 email password
3 Choose imap and enter the following details under ‘Server incoming mail’:
imap server: imap.1and1.co.uk
Security type: ssl
Port: 993
4 At ‘Outgoing mail server’ enter the details below and choose ‘Login’:
SMTP server: auth.smtp.1and1.co.uk
Security type: starttls
Port: 587
Verification for sending email: yes
Username: email
Password: your 1and1 email password
5 Your account is now ready to use.
Congratulations, your account is now set up. Open the email app on your smartphone to use your email.
Question and Answer
Have a question regarding your Android email setup or think you can help other 1and1 users out? Please comment below!
Managed to get all the info in eventually but the new galaxy edge wont work still says incorrect user name or password
Managed to get all the info in eventually but the new galaxy edge wont work still says incorrect user name or password
could not setup up as it keep saying that incorrect username and password
I was a 1&1 customer up til 2hrs ago I stopped receiving emails 4 days ago. It keeps saying cannot get mail then I try but then a google page comes up saying .password and email incorrect. I’ve some how managed to change email to I cloud. How do I get back to 1&1 email address and start receiving my emails again. I’m not computer savvy as I’ve spent several hours trying all different things to try and get my emails back. I hope you can help me!
I was a 1&1 customer up til 2hrs ago I stopped receiving emails 4 days ago. It keeps saying cannot get mail then I try but then a google page comes up saying .password and email incorrect. I’ve some how managed to change email to I cloud. How do I get back to 1&1 email address and start receiving my emails again. I’m not computer savvy as I’ve spent several hours trying all different things to try and get my emails back. I hope you can help me!
I CANNOT LOG ON TO THE SERVER. I haven’t changed my password. I need to check the spam mail.
I can’t change my password, can’t access my mail on 1and 1,I used 1980. I wanted to change it.
Does anyone actually answer these questions on the website? I can’t see any replies.
Where you say «email» do you mean «email» or my email address? Where you have UW email-wachtwoord» do you mean that or my password? It’s very ambiguous and so far I have not been able to set up my email using these instructions.
Источник
Отправка 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 .
Таким образом создав небольшой класс-поток, можно спокойно слать необходимую информацию от клиента к себе на ящик.
Источник
1and1.com email settings for Android
Mail settings 1and1.com
POP / IMAP | imap |
Incoming server | imap.1and1.com |
Incoming port | 993 |
SSl (security) incoming | ssl |
Outgoing server | smtp.1and1.com |
Outgoing port | 587 |
Requires sign-in | yes |
Android guide to setup 1and1.com mail
1 Open your Email application from the menu, add a new account and choose ‘Other’.
If you do not have an account yet, you can start setting up right away. Otherwise, open ‘Settings’ in the email app and choose ‘Add account’.
2 In the next screen enter your account details and click on ‘Login’:
Email: your 1and1.com email address
Password: your 1and1.com email password
3 Choose imap and enter the following details under ‘Server incoming mail’:
imap server: imap.1and1.com
Security type: ssl
Port: 993
4 At ‘Outgoing mail server’ enter the details below and choose ‘Login’:
SMTP server: smtp.1and1.com
Security type: ssl
Port: 587
Verification for sending email: yes
Username: email
Password: your 1and1.com email password
5 Your account is now ready to use.
Congratulations, your account is now set up. Open the email app on your smartphone to use your email.
Question and Answer
Have a question regarding your Android email setup or think you can help other 1and1.com users out? Please comment below!
Trying to set up 1on1 mail on Google pixel three. It’s asking for authentication type for SSL as well as IMAP path prefix. please provide the needed info
How do we remove a person from e-mail access when they are no longer an employee at our agency?
Meet to set up account
Followed your instruction but getting a pop-up saying «cannot open connection to server»
Outgoing page on 1and1 e mail setup does not appear on my android phone please advise
I have bought a Huawei phone today and have successfully added my Gmail email account but despite following your instructions cannot set up my 1and1 accounts. I get «couldn’t open connection to server»
How can I sync what I delete off my outlook pc with my phone
Followed your instructions exactly on several attempts. Get message to the effect of «Cannot authenticate». Thanks for any help.
please send me the setings for android
what are the outgoing and incoming usernames and passwords ?
Источник