5,201 questions
1
vote
1
answer
83
views
wrong attached file name in javax.mail [duplicate]
I have an Javax.mail application what receive e-mails and find a text in the attached pdf and docx. I the file name contains utf-8 characters it looks like:
=?utf-8?Q?Sz=C3=A1mla.docx?=
In the ...
0
votes
1
answer
77
views
Issue with Jakarta Mail - MessageCountAdapter doesn't seem to work
I'm encountering an issue while using Jakarta Mail to fetch emails and capture specific keywords. Here's the details:
The source code is as follows:
package org.example.receiver.kit.component;
import ...
-1
votes
1
answer
78
views
How to deal with Simple Java Mail exception 451-Mails per session limit exceeded
I get an exception on sending mails using Simple Java Mail:
Caused by: org.eclipse.angus.mail.smtp.SMTPSendFailedException: 451-Requested action aborted
451-Mails per session limit exceeded.
451 ...
1
vote
0
answers
79
views
Facing issue with SMTP gmail while sending mail using jakarta email throwing jakarta.mail.MessagingException: Could not convert socket to tls
When sending mail using Jakarta email throwing below exception
Using these dependencies
jakarta.activation-2.0.1.jar
jakarta.mail-2.0.2
jakarta.mail.MessagingException: Could not convert socket to ...
0
votes
0
answers
127
views
How to send email through GMail account using Jakarta Mail 2.0.1, OAuth2, SMTP and TLS 1.2
Adding email notification (send only) capability to my Java desktop app using Jakarta Mail 2.0.1.
In the Google Cloud Console have:
The GMail API enabled.
An OAuth2 client, Client ID and Client ...
0
votes
1
answer
97
views
Performance difference emailing between NodeJS and Java
I benchmarked sending 10000 simple mail in Java and Nodejs.
I user FakeSmtp as mail server in running in local.
With NodeJs it took 3 minutes 10 seconds.
In Java it took over 15 minutes.
Why is there ...
0
votes
1
answer
52
views
outlook.office365.com using OAUTH2 Times Out inside AWS
I have a test app that successfully connects to our outlook.office365.com account via OAUTH2 and returns the number of unprocessed inbox messages, which currently stands at over 57,000.
However, when ...
0
votes
0
answers
35
views
How to Retrieve MimeMessage via Message-ID in Apache James
I'm using James + JPA and would like to create a Mailet which modifies another mail.
I must retrieve the other mail via its mime-message-id. Any advice how this can be done?
It seems mails can only be ...
0
votes
1
answer
73
views
Messages not removed from Gmail inbox despite using expunge in jakarata mail Java code [duplicate]
After loading my application's client secrets
GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, isr);
I am able to successfully authenticate using XAOATH2 and get an IMAP ...
0
votes
0
answers
146
views
When to use Transport.send() vs. sendMessage()
Jakarta Mail provides two main ways to send email messages:
Transport.send(Message msg)
This static method uses the Session associated with the message, opens a connection to the SMTP server, sends ...
0
votes
0
answers
73
views
How to sign an e-mail with PGP/MIME in Java?
In my Java program, I want to send e-mails signed with an OpenPGP key in PGP/MIME format as defined in RFC 3156. For this, I use PGPainless’ SOP and Angus Mail.
Technically, signing plain text works ...
1
vote
1
answer
88
views
Storing thread specific variables using ExecutorService
Hi there I have an application that connects to n inboxes of users. Since I don't won't to poll new messages I am using the IMAP idle command and a message count listener to listen to new messages.
...
0
votes
0
answers
55
views
jakarta.activation.UnsupportedDataTypeException: text/calendar
I'm trying to send an email with an iCal attachment using Commons Email and Jakarta Mail.
org.apache.commons.mail2.jakarta.HtmlEmail email = new HtmlEmail();
email.setCharset(EmailConstants.UTF_8);
...
-1
votes
2
answers
59
views
Using JavaMail in Glssfish 4.1 to send an email
I am using JavaMail in Glssfish 4.1 to send an email but get back an exception I am not able to fault find. The maven dependencies are :
<dependency>
<groupId>javax.mail</...
0
votes
1
answer
50
views
Are there advantages of server defined jndi MailSession over runtime creation?
I have multiple MailSessions, one for each of our client (domain) saved in our glassfish server admin panel which are injected via jndi resource. For simplification in this example they are hardcoded. ...