I am having some problems with this program. Its not sending out the email message. Can you please tell me whats wrong with it??
#set str "The wick brown box\n"
printf str "This is a test\n"
socket_write sock str
RE: having some problems with
BY: Kernal2 to All on Tue Aug 21 2001 10:20 pm
#set str "The wick brown box\n"
printf str "This is a test\n"
socket_write sock str
I think you mean sprintf here (not printf). Also, SMTP command should be terminated with "\r\n" (not just "\n"). There may be other problems, but the were obvious to me.
-Rob
I think you mean sprintf here (not printf). Also, SMTP command should be terminated with "\r\n" (not just "\n"). There may be other problems, but were obvious to me.
sprintf str "helo %s\n" yourdomain
socket_write sock str
socket_readline sock str
print str
# Terminate body of message, close connection with server
set str "\r\n"
socket_write sock str
set str "quit\r\n"
socket_close sock
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,043 |
Nodes: | 15 (0 / 15) |
Uptime: | 46:57:49 |
Calls: | 500,902 |
Calls today: | 5 |
Files: | 109,370 |
D/L today: |
6,202 files (744M bytes) |
Messages: | 304,283 |