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: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 130:58:06 |
Calls: | 376 |
Calls today: | 1 |
Files: | 2 |
Messages: | 38,903 |