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: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 578 |
Nodes: | 8 (0 / 8) |
Uptime: | 30:58:48 |
Calls: | 10,736 |
Calls today: | 1 |
Files: | 5 |
Messages: | 443,218 |
Posted today: | 1 |