Skip to content
Snippets Groups Projects
Commit 6bfc4776 authored by rswindell's avatar rswindell
Browse files

Formats SMTP RCPT TO command according to RFC821.

parent 2182aa66
No related branches found
No related tags found
No related merge requests found
......@@ -284,6 +284,8 @@ function send_msg(dest, msg)
alert("Invalid SOML response: " + rsp);
break;
}
if(dest.indexOf('<')<0)
dest = '<' + dest + '>';
sock.send("RCPT TO: "+dest+"\r\n");
if(Number((rsp=sock.recvline()).slice(0,3))!=250) {
alert("Invalid RCPT TO response: " + rsp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment