Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29755

SMTP Implementation in java

$
0
0

I wrote a java program to implement smtp.

My input consists of five arguments: localhost 25 localhost.com loaclhost.com "hellooo"

I am getting the following error:

D:trying to connect to server
D:connected
D:response: 220 localhost ESMTP server ready.
D:sending command: HELO SRIJA-PC
D:response: 250 localhost Hello, SRIJA-PC.
D:sending command: MAIL from: localhost.com
D:response: 250 Sender OK - send RCPTs.
D:sending command: RCPT to: localhost.com
D:response: 553 Invalid RFC821 mailbox specification.
Error while sending: Error while executing cmd RCPT to: localhost.com:553-Invalid RFC821 mailbox specification.

Can you please help me to solve the error?


Viewing all articles
Browse latest Browse all 29755

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>