Receive mails through a port and extract body and headers - jakarta-mail

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

Related

How to handle mailer daemon responses with JavaMail API and exchange server?

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.

How do I send email from a react app using SMTP

i have a webform written in react - i would like an email sent to an admin when someone submits something from it.
I had a look at emailjs which looked promising, but it looks like it was attempting to execute the email send at the browser side... duh!
How do I send the email from the server side (i.e. from the webserver) so that I may use the local smtp server to relay the email?
I'd spin up a node.js app and use nodemailer (https://nodemailer.com).
Also, beware that sending mail from 'localhost' is likely to get your messages caught in spam. I highly recommend using a service like mailgun.com (free) to delivery your messages so you don't have to worry about SPF records, DKIM records and IP Address "warmup".

Mail GAE not sending but

I have a problem sending mail with JavaMail Service in GAE.
I did all the code in the documentation, i debug it online and it work fine, and it count the mail sended in the quota section the problem is, i didn't receive anything, and also checked with the account sender and it's the same there isn't any trace of mail sended. I tried this for some mails address and it's not working too.
Anyone had this problem yet? A solution to this?
The problem is that the mail sended as SPAM on gmail account.
Read doc: https://cloud.google.com/appengine/docs/java/mail/#Java_Authenticating_mail_DKIM
The email used to send the mails must be a member of the application. It can be the problem... It was with me.
https://cloud.google.com/appengine/docs/python/mail/
The link is about python but for sure that the same email rules apply to Java.
For security purposes, the sender address of a message must be one of the >following:
The Gmail or Google Apps Account of the user who is currently signed in
Any email address of the form anything#appname.appspotmail.com or >anything#appalias.appspotmail.com
Any email address listed in Email API Authorized Senders found in the App >Engine Settings page of the Developers Console

telepathy-glib send a XMPP message

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?

About google app gmail api

I was trying to send emails to my client from my application after few sent mails all mails bounces back with a message saying "You have reached a limit for sending mail. Your message was not sent." And one more thing when i see my developer console gmail api it still showing 0% usage.what is this issue? is this a bug or something else?
There's an extra limit on sending because it's a vector for abuse--it doesn't show up in the developers console but it's the same as sending via SMTP or the web interface.
This seems to have a good overview:
http://www.labnol.org/internet/email/gmail-daily-limit-sending-bulk-email/2191/

Resources