I'm trying to use a perl script to send data to a qmail smtpd
running on my ISPs machine. It won't work!
This is the dialog between my script and the qmail smtp :
-----------------------------------------
220 <<ISP servername>>
ehlo <<My computer name>>
250-<<ISP servername>>
mail from: <[EMAIL PROTECTED]>
250 ok
rcpt to: <[EMAIL PROTECTED]>
250 ok
data
354 go ahead
From: Ben <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject : This is a test
This is a test message.
.
quit
-----------------------------------------
The server doesn't respond to the <CRLF>.<CRLF> to
terminate the data sending.
This is what happens when I try to send the exact same
message to my own local SMTP (FTGate on WindowsNT) :
-----------------------------------------
220 <<servername>> FTGate server ready -
ehlo <<My computer name>>
250-<<servername>>
mail from: <[EMAIL PROTECTED]>
250 <[EMAIL PROTECTED]> sender ok
rcpt to: <[EMAIL PROTECTED]>
250 Recipient ok
data
354 Start mail input; end with <CRLF>.<CRLF>
From: Ben <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject : This is a test
This is a test message.
.
250 Ok Message queued
quit
-----------------------------------------
As you can see, this works fine and the message is delivered.
Anyone have any ideas?
Ben Friday
[EMAIL PROTECTED]