开发者

Receive mails through a port and extract body and headers

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜