Questions tagged as 'javamail'

2
answers

Attach TXT file using Javamail

I'm using Javamail to send email, with attachment, on Android. When attaching a file with a ".txt" extension, it is assigning the content to the email body, not as an attached file. My code for file attachments: public void addAttachment...
asked by 23.07.2014 / 19:43
3
answers

Is the SMTP addresses of email providers default to: smtp.provedor.com?

   Can there be an email provider that uses a SMTP address that does not start with smtp. ?       Or there is some rule that does not allow SMTP servers to be configured outside this standard. Because I'm implementing an email configurat...
asked by 14.03.2014 / 21:24
3
answers

Send e-mail with STARTTLS port 587

I need to send an email using the client settings. Host access uses STARTTLS security using port 587. For testing I put the following code (I changed the client data for security): try { String host = "200.201.202.203";...
asked by 22.07.2014 / 22:32
0
answers

JavaMail: MailBox always lowers the same email

I'm downloading emails from Gmail , and saving the ones that are important to my client's system in the database. The problem is when I use the code below, it always returns me the same emails, getting duplicitous. Has anyone ever gone th...
asked by 19.08.2015 / 20:44
2
answers

Error sending email with JavaMail

It was working normally. Now when I run the program the following error appears: Could not connect to SMTP host: smtp.gmail.com, port: 465; This is my method public void enviaEmail() { Properties props = new Properties(); pro...
asked by 01.04.2015 / 18:47
1
answer

Move multiple messages to a folder using JavaMail

I want to refactor an email handling code, I know you can remove multiple messages in one operation, but to move multiple messages to a certain folder, I use the IMAP protocol.     
asked by 05.02.2014 / 14:44
0
answers

Error with the commons Mail "Sending the email to the following server failed: smtp.googlemail.com:465"

Hello. I'm trying to send an email from java and I'm using commons mail and javamail for this. More is giving error ... Follow method. I've already changed the .. "Allow less secure apps" in gmail public void enviarEmail(String emailDeDestino,...
asked by 12.09.2018 / 04:54
3
answers

Is it possible to attach an Android res / drawable file to an email using JavaMail?

I'm looking for the solution in two ways: Get the file PATH: I would like to get the path of an image that is in res/drawable in my Android project. I'm needing path because I have to send it attached by email, a...
asked by 21.03.2014 / 15:49
1
answer

Filter reading emails from a date

I have the following code snippet that reads emails from the inbox. try { email.conectar(); javax.mail.Store store = email.getArquivoEmail(); Folder inbox = store.getFolder("inbox"); inbox.open(Folder.READ_ONLY); //Aqui go...
asked by 19.05.2016 / 20:22
1
answer

Debug email sending - java-mail-1.4.4

I have following code: private static boolean envioTest(final String descricao, final String msg, final String to)throws MessagingException{ final Properties props = new Properties(); props.put("mail.smtp.host", "64.233.186.108");...
asked by 29.12.2015 / 18:35