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?