1 and 1 mail android

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!

Читайте также:  Bin trade club для андроид

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

  1. public class SimpleEMail extends Activity <
  2. Button send;
  3. EditText address, subject, emailtext;
  4. @Override
  5. public void onCreate(Bundle savedInstanceState) <
  6. super.onCreate(savedInstanceState);
  7. setContentView(R.layout.simple_email);
  8. // Наши поля и кнопка
  9. send = (Button) findViewById(R.id.emailsendbutton);
  10. address = (EditText) findViewById(R.id.emailaddress);
  11. subject = (EditText) findViewById(R.id.emailsubject);
  12. emailtext = (EditText) findViewById(R.id.emailtext);
  13. send.setOnClickListener( new OnClickListener() <
  14. @Override
  15. public void onClick(View v) <
  16. final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
  17. emailIntent.setType( «plain/text» );
  18. // Кому
  19. emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,
  20. new String [] < address.getText().toString() >);
  21. // Зачем
  22. emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
  23. subject.getText().toString());
  24. // О чём
  25. emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,
  26. emailtext.getText().toString());
  27. // С чем
  28. emailIntent.putExtra(
  29. android.content.Intent.EXTRA_STREAM,
  30. Uri .parse( «file://»
  31. + Environment.getExternalStorageDirectory()
  32. + «/Клипы/SOTY_ATHD.mp4» ));
  33. emailIntent.setType( «text/video» );
  34. // Поехали!
  35. SimpleEMail. this .startActivity(Intent.createChooser(emailIntent,
  36. «Отправка письма. » ));
  37. >
  38. >);
  39. >
  40. >

* This source code was highlighted with Source Code Highlighter .

Вот, код до безобразия прост. Правда можно еще проще: если нам лень создавать дополнительное Activity для ввода наших полей, то можно было бы просто запустить наш Intent.

Плюсы: Простая реализация, достаточно удобно для обратной связи.
Минусы: У пользователя должна быть настроенная программа приёма-передачи почтовых сообщений, без неё обрабатывать данный Intent будет некому.

Читайте также:  Google apps signed android

Часть 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) — Основной метод, в который передаются наши данные для отправки.

Рассмотрим код последнего метода чуть ближе:

  1. public synchronized void sendMail( String subject, String body, String sender, String recipients, String filename) throws Exception <
  2. try <
  3. MimeMessage message = new MimeMessage(session);
  4. // Кто
  5. message.setSender( new InternetAddress(sender));
  6. // О чем
  7. message.setSubject(subject);
  8. // Кому
  9. if (recipients.indexOf( ‘,’ ) > 0)
  10. message.setRecipients(Message.RecipientType.TO,
  11. InternetAddress.parse(recipients));
  12. else
  13. message.setRecipient(Message.RecipientType.TO,
  14. new InternetAddress(recipients));
  15. // Хочет сказать
  16. BodyPart messageBodyPart = new MimeBodyPart();
  17. messageBodyPart.setText(body);
  18. _multipart.addBodyPart(messageBodyPart);
  19. // И что показать
  20. if (!filename.equalsIgnoreCase( «» )) <
  21. BodyPart attachBodyPart = new MimeBodyPart();
  22. DataSource source = new FileDataSource(filename);
  23. attachBodyPart.setDataHandler( new DataHandler(source));
  24. attachBodyPart.setFileName(filename);
  25. _multipart.addBodyPart(attachBodyPart);
  26. >
  27. message.setContent(_multipart);
  28. Transport.send(message);
  29. > catch (Exception e) <
  30. Log.e( «sendMail» , «Ошибка отправки функцией sendMail! » );
  31. >
  32. >

* 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:

  1. private class sender_mail_async extends AsyncTask String , Boolean><
  2. ProgressDialog WaitingDialog;
  3. @Override
  4. protected void onPreExecute() <
  5. // Выводим пользователю процесс загрузки
  6. WaitingDialog = ProgressDialog.show(ExtendedMail. this , «Отправка данных» , «Отправляем сообщение. » , true );
  7. >
  8. @Override
  9. protected void onPostExecute(Boolean result) <
  10. // Прячем процесс загрузки
  11. WaitingDialog.dismiss();
  12. Toast.makeText(mainContext, «Отправка завершена. » , Toast.LENGTH_LONG).show();
  13. ((Activity)mainContext).finish();
  14. >
  15. @Override
  16. protected Boolean doInBackground(Object. params ) <
  17. try <
  18. // Получаем данные с наших полей
  19. title = ((EditText)findViewById(R.id.screen_sendnews_et_title)).getText().toString();
  20. text = ((EditText)findViewById(R.id.screen_sendnews_et_text)).getText().toString();
  21. from = «from_post_msg@gmail.com» ;
  22. where = «where_post_msg@yandex.ru» ;
  23. // Вызываем конструктор и передаём в него наши логин и пароль от ящика на gmail.com
  24. MailSenderClass sender = new MailSenderClass( «mypostmail@gmail.com» , «password» );
  25. // И вызываем наш метод отправки
  26. sender.sendMail(title, text, from , where , attach);
  27. > catch (Exception e) <
  28. Toast.makeText(mainContext, «Ошибка отправки сообщения!» , Toast.LENGTH_SHORT).show();
  29. >
  30. return false ;
  31. >
  32. >

* This source code was highlighted with Source Code Highlighter .

  1. public void onClick(View v) <
  2. sender_mail_async async_sending = new sender_mail_async();
  3. async_sending.execute();
  4. >

* This source code was highlighted with Source Code Highlighter .

Таким образом создав небольшой класс-поток, можно спокойно слать необходимую информацию от клиента к себе на ящик.

Читайте также:  Resource types in android

Источник

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 ?

Источник

Оцените статью