Subj : having some problems with
To   : Digital Man
From : Kernal3
Date : Wed Aug 22 2001 10:07 am

RE: having some problems with
BY: Digital Man to Kernal2 on Wed Aug 22 2001 04:38 pm

> 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 tried that is its not working.

Here is the code I have now.

# Intial dialup
set mailto "[email protected]"

sprintf str "helo %s\n" yourdomain
#sprintf str "ehlo %s\n" yourdomain
socket_write sock str
socket_readline sock str
print str

sprintf str "mail from: %s\n" mailfrom
socket_write sock str

sprintf str "rcpt to: %s\n" mailto
socket_write sock str


set str "data\n"
socket_write sock str

# Send additional headers like subject, date ect..

set str "Subject: New password for bbs.chatfree.org\n"
socket_write sock str

sprintf str "To: %s\n\n" mailto
socket_write sock str


# Send body of the message.

set str "\n"
socket_write sock str

#set str "The wick brown box\n"
#printf str "This is a test\n"
sprintf str "Your new password is : %s\r\n" pw1
socket_write sock str

# Terminate body of message, close connection with server

set str "\r\n"
socket_write sock str

set str "quit\r\n"
socket_write sock str
socket_close sock
Print "Message sent.\r\n"


Do know why its not sending the email message to cox.rr.com smtp server. I am
getting a connection to there server.

Thank you
Phil

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net