WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Postie

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

POSTIE Extender Error 10061

Keywords: 	 POSTIE Extender Error 10061

Question:

I am having trouble with e-mail extenders. I am trying to simply send a message using the POP Mail POSTIE extender.

I get the following message when I try to use both my corporate exchange 5.5 server and my internet smpt provider.

Error is "Could not connect to server: smtp.atoga.com:25, error=-10061

This happens exactly the same with my usa.net account (SMTP internet provider). I have both pop.atoga.com and smtp.atoga.com pointing to the same Exchange server in the corporate DNS.

I followed the chain for other e-mail issues here hoping to find a solution, the script below is modified from that chain.

I am using the WWPST32I.DLL because I have the 2000C version of WinBatch.

;TITLE: POP Mail (POSTIE) Test 
;DATE: 4/10/02
;AUTHOR: Micheal Bach
;VERSION: Beta 0
;UPDATED:
;PURPOSE: Used to figureout how to send an attachment to several people, Using POP mail.
;
AddExtender("WWPST32I.DLL")
smtphost="smtp.atoga.com"
pophost="pop.atoga.com"
fromaddr="me@atoga.com"
userid="me"
password="PW"
port=""
tolist="builder@atoga.com"
cclist="me@atoga.com"
bcclist=""
subject="Test POP mail"
msg="This is a simple example message"
attachments="d:\esi\tools\rpts\DailyReceitpts\pordr041802.pdf"
flags="h"
msgnumber=""
outputfile=""
pat=""
mailbox=""


kInit(smtphost,fromaddr,userid,password,port)
kDest(tolist,cclist,bcclist)
kSendText(subject,msg,attachments,flags)

errline=kStatusInfo()
Message("ErrLine",errline)
I have run into a 255 Character limit issue with the MAPI Extender.

Answer:

Well 10061 is "Connection Refused"

The mail server did not want to talk with you.

This can happen for a number of reasons. Depends on the setup of the server.

Generally the easiest way to get this working is to install a standard Internet email client (Outlook Express is usually handy) and make that work. After that works, then try postie.

There are many reasons a SMTP server can reject your request.

  1. Unauthorized access.

  2. From address not acceptable

  3. From machine IP address not acceptable

  4. Need to check email before sending email to validate password (fairly rare).
If you can contact the server administrator somethimes they can look up the exact error in their logs.
Article ID:   W15069
File Created: 2002:09:05:13:49:24
Last Updated: 2002:09:05:13:49:24