I am using javaMail Api to read the mail attachments using pop3 protocol. Please tell me is there any way to get mail from UID (unique id) for pop3 protocol, same as imap protocol where we have methods to get mail from UID.
See the javadocs for the com.sun.mail.pop3 package to get started. The UID support in the POP3 protocol is very primitive compared to what IMAP supports. You can't directly get a message based on a UID, but you can get a list of all the UIDs for all the messages and look through the list yourself to find out which message has the UID you're looking for.
Related
We have a mailing service, where we send notifications to users. But when a user's email is invalid , the the server responds with a mailer daemon response or bounce mail. I want to catch these responses and log them into a database.
Is this possible using JavaMail API along with exchange mail server.
Thanks in advance.
I am trying to retrieve session ID which client has presented as a part of client hello in a resumed session, Unfortunately i have access to only application layer, Is there a way i can extract it from SSL structure or any Openssl API available for the same
You can try to set message callback using the API SSL_CTX_set_msg_callback. This will give all the handshake messages which are sent or received. In this, you can try to parse ClientHello message and retrieve the Session ID.
In our application we are implementing the Send As feature from Gmail client.
https://support.google.com/mail/answer/22370
We are setting the From, To and Reply To headers accordingly to the settings that are set for the external account. Are there other headers that should be set when sending message in behave of external account? For example when we have set another SMTP server for the current external account.
Well, according to User Messages API Document, these are all the headers you need to add:
Users.messages: send
Sends the specified message to the recipients in the To, Cc, and Bcc
headers. Try it now or see an example.
This method supports an /upload URI and accepts uploaded media with
the following characteristics:
Maximum file size: 35MB Accepted Media MIME types: message/rfc822
Be sure to be authorized first, and apply best practices on sending to external accounts.
Using GNOME Online Accounts API I'm getting a TelepathyGLibAccount object and then the Connection used in, but I can't find any documentation/example how to send a XMPP message (or at least a message to other client). Any ideas?
I am trying to build a proxy server in between my application and my smtp server. So when my application sends an email to some email id, my proxy server should catch it and change its "TO" address to my id and then send it to smtp server so that I'll get that message in my mail. This is a different case compared to reading messages from an inbox. I dont know how to distinguish each separate mail and get mail headers and body from each mail.
Any help would be greatly appreciated. Thanks in advance!
You should take a general look at JavaMail API and playing with it before asking for complete solutions.
Some other resources:
jGuru: Fundamentals of the JavaMail API
the JavaMail API - FAQ