Most voted "boar" questions
Javamail is a Java API used to send and receive emails via SMTP, POP3 and IMAP. Javamail is built on the Java EE platform, but also offers an optional package for use in Java SE. If the question is not about "Javamail", do not use this tag, even if you are using "Javamail" in your project.
Learn more…24 questions
Sort by count of
-
3
votes3
answers180
viewsIt is a standard for email providers' SMTP addresses to be in the default: smtp.provedor.com?
There may be an email provider that uses an address SMTP that does not start with smtp.? Or is there a rule that doesn’t allow servers to be configured SMTP out of this pattern. Because I am…
-
3
votes2
answers1253
viewsAttach TXT file using Javamail
I’m using Javamail for sending email, with attachment, on Android. When attaching a file with extension ". txt" it is assigning the content to the body of the email, not as attached file. My file…
-
3
votes3
answers1649
viewsSend email with STARTTLS porta 587
I need to send an email using client settings. Host access uses STARTTLS security using port 587. For testing I set up the following code (I changed the customer data for security): try { String…
-
3
votes1
answer67
viewsJavamail: Mailbox always downloads the same email
I’m downloading the emails from Gmail, and storing in the database those that are important to my client’s system. Only the problem is when I use the code below, it always returns me the same…
-
2
votes1
answer327
viewsMove multiple messages to a folder using Javamail
I’m looking to refactor an email manipulation code, I know you can remove multiple messages in one operation, but and to move multiple messages to a certain folder, have as? I use the IMAP protocol.…
-
2
votes0
answers20
viewsError with Commons Mail "Sending the email to the following server failed : smtp.googlemail.com:465"
Hello. I’m trying to send an email through java and I’m using Commons-mail and javamail for this. Más está dando erro... It follows method. I already changed the .." Allow less secure apps" in gmail…
-
2
votes2
answers742
viewsError 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 way public void enviaEmail() { Properties props…
-
1
votes3
answers1091
viewsIs it possible to attach an Android res/drawable file to an email using Javamail?
I’m looking for a two-way solution: Get the file path: I would like to get the path of an image that is in res/drawable on my Android project. I’m in need of the path because I have to send it in…
-
1
votes1
answer1815
viewsError using Javamail with Office365 account
I have a Java class that works perfectly to send emails through a Gmail account. However, even using the recommended settings to send an email via SMTP with Office365, an error is returned. The…
-
1
votes1
answer72
viewsDebug sending email - 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();…
-
1
votes1
answer106
viewsFilter email reading from a date
I have the following piece of code that performs the reading of emails from the inbox. try { email.conectar(); javax.mail.Store store = email.getArquivoEmail(); Folder inbox =…
-
1
votes2
answers603
viewsSending Email with Java
This code that I am using to send email by Java last time I used in 2017 worked, however, I am trying to use it now and it does not work in any way, it does not send me the email in any way. package…
-
0
votes1
answer1146
viewsSending Email Via Proxy - Javamail
This is my code: (UPDATED 2) I updated my account. I allowed access by external apps and then it worked !!! PS: but I had to make some of the suggested changes. So I marked the answer below as the…
-
0
votes2
answers435
viewsProblems sending email with Javamail
I am developing a Java Web application with Primefaces in which I use javaMail to email with user information, but it is giving error. The Bean: @Named @RequestScoped public class EnvioEmailBean…
-
0
votes1
answer141
viewsException released when using the Commons-email API
I’m trying to use the API Commons-Email as an alternative to the known JavaMail to send emails in Java but a problem is occurring. The following is being launched Exception: Exception in thread…
-
0
votes1
answer524
viewsE-mail with Javamail copy
I have a system that sends e-mail, works normally, I want to insert a field to send copies of email, a CC or Cco. follows below an excerpt of my code. Entity private String destino; private String…
-
0
votes0
answers288
viewsJavamail How to change the sender’s email address?
I am making use of a very basic code for sending e-mail and I am noticing that the sender’s address differs from the one that was passed, and in the place this the email account address. I am making…
-
0
votes1
answer442
viewsSend login and password in Javamail email
I am developing a web application using jsp and Servlet and I would like that when sending the email an image is passed and the login and password but the email only send the image and does not send…
-
0
votes1
answer39
viewsjavax.net.ssl.Sslexception when sending mail using Javamail
Good morning. I’m having trouble sending an email using Javamail. Returns the following exception: (javax.mail.SendFailedException)javax.mail.SendFailedException: Sending failed; nested exception…
-
0
votes1
answer191
viewsCommonsmail Javamail - Failed to send email
I am trying to send email using google smtp with the Commonsmail lib, in a web application, but this always generating a fault. I made a separate app and tested several settings, in which I saw…
-
0
votes1
answer69
viewsDoubt Javamail - Attachments coming null
I have an application that downloads the attachments that are sent in a certain e-mail and works perfectly. There arose the need to do the same thing in another email. The two are gmail. However,…
-
0
votes1
answer50
viewsError sending email using Javamailsender - Microsoft Exchange 10
Good morning! I cannot send the email. All the settings I tried to use return the same error: WARN o.s.w.s.m.a.ResponseStatusExceptionResolver - Resolved…
-
-1
votes1
answer97
viewsError to open link in Chrome and IE browsers
I’m using Javamail to send a link to reset the password, but when I click on the link and it only opens in Firefox, I can’t open it in Chrome or IE, only if I copy the link and put it in the URL,…
-
-2
votes1
answer61
viewsDifficulty to implement Javamail!
My application is behaving in a very strange way, when running the Spring Boot application it generates the logs stating that you sent the email using Scheduled, but when consulting my email account…