简体   繁体   中英

Is it possible to receive mail send response from java using TCP/IP protocall?

I want to test mail sending. As TCP/IP protocall may be supported to give a response of sent mail, I want to know about is there any library to use it?

I don't think you understand how email works. TCP/IP is used to send the message from your application to your mail server. Your mail server then forwards the message to other mail servers, which ultimately deliver the message to the recipient. There's no end-to-end TCP connection between your application and the recipient's mail server. JavaMail will tell you whether whether the message was accepted by your mail server, but not whether it was delivered by the recipient's mail server.

There's more information in the JavaMail FAQ .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM