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: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 65:28:38 |
Calls: | 335 |
Messages: | 113,199 |