Share

Blat - A Win32 Command Line SMTP Mailer

Tracker: Support Requests

5 POP3 before SMTP not working - ID: 1699746
Last Update: Comment added ( chipprogrammer )

I am calling blat like this:

blat somefile.txt -to me@me.com -subject "Test mail" -server srvIPAddress
-f sender@address.com -u theUn -pw thePw -serverPOP3 srvIPAddress -pu theUn
-ppw thePw -debug

Blat v2.6.2 w/GSS encryption (build : Feb 25 2007 12:06:19)

<<<getline<<< 220 server.address ESMTP Sendmail 8.12.11.20060614/8.12.6; F
ri, 13 Apr 2007 06:34:01 GMT
>>>putline>>> EHLO MYHOST
<<<getline<<< 250-server.address Hello rrcs-67-78-29-33.se.biz.rr.com [67
.78.29.33], pleased to meet you
<<<getline<<< 250-ENHANCEDSTATUSCODES
<<<getline<<< 250-PIPELINING
<<<getline<<< 250-8BITMIME
<<<getline<<< 250-SIZE
<<<getline<<< 250-DSN
<<<getline<<< 250-ETRN
<<<getline<<< 250-AUTH PLAIN LOGIN
<<<getline<<< 250-DELIVERBY
<<<getline<<< 250 HELP
Sending somefile.txt to me@me.com
Subject: Test mail
Login name is sender@address.com
>>>putline>>> AUTH PLAIN AGludHJlcGlkYWRtaW4ASW1vcnI1NTU=
<<<getline<<< 535 5.7.0 authentication failed
The SMTP server did not accept Auth PLAIN value.
Are your login userid and password correct?
>>>putline>>> AUTH LOGIN
Error: Connection to server was dropped.
The SMTP server does not require AUTH LOGIN.
Are you sure server supports AUTH?
>>>putline>>> MAIL FROM:<sender@address.com>
Error: Connection to server was dropped.
The SMTP server does not like the sender name.
Have you set your mail address correctly?
connection::put_data() unexpected error from send(): 10053
Error: Error sending data.
Error: Connection to server was dropped.

It does not seem to try to log into the POP3 server firt. What am I doing
wrong?

Thanks
cf


codefighta ( codefighta ) - 2007-04-13 06:39

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 3 )




Date: 2008-03-16 14:00
Sender: chipprogrammer


I added a snippet of code to check if you gave a POP3 host name, and to
use the SMTP host if you did not. The code says:

If you gave a POP3 userid or POP3 password
if you did not give a POP3 host name/address
use the SMTP server as the POP3 server.

If you have a chance, please test this. It can be downloaded from my home
account:

http://home.att.net/~chip.programmer/blat/v2.70/blat.exe
http://home.att.net/~chip.programmer/blat/v2.70/blat.dll

--
Chip


Date: 2008-03-15 15:03
Sender: nobody

Logged In: NO

Chip,

Thanks for getting back to me. In this test the pop and smtp servers have
the same address (in any mail client for example I simply have to give the
domain name). The host I was trying to use required that (for security
reasons) that any client firts log onto pop before it would allow sending
via smtp.

Thanks
cf


Date: 2008-03-15 14:32
Sender: chipprogrammer


Is the first part of that log coming from your POP3 server or from the
SMTP server? It appears to be from your SMTP server, which would indicate
to me that you gave a bad POP3 server name/address to use. When Blat
cannot connect to a POP3 server, it won't use POP3 access before attempting
to access the SMTP server.

--
Chip


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.