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.

Error -10061 or Status 550 Error - Invalid Address and General SMTP Mail Servers Info

Keywords:     10061   Invalid Address and General SMTP Mail Servers Info

Question:

I get the error message of "Could not connect to server:mail.yahoo.com:25,error=-10061"

Where can I find the error information (-10061)?


----Simple code----
;Debug(@ON)

AddExtender("WWPST34I.DLL")
host="mail.yahoo.com"
fromaddr="min.zhang@cn.pwcglobal.com"
userid="valid e-mail account here"
password="valid password here"
port="" ;shall i put port number here(110)?
tolist="min.zhang@cn.pwcglobal.com"
cclist=""
bcclist=""
subject="Postie Extender"
msgfile="c:\config.sys"
attachments="c:\autoexec.bat"
flags="1"


kInit(host,fromaddr,userid,password,port)
kDest(tolist,cclist,bcclist)
kSendFile(subject,msgfile,attachments,flags) 

msg=kStatusInfo()
Message("Message?",msg)
---------End---------- 

Answer:

Yahoo is not letting you use them for a mail server. Very few mail servers will let you do that.

You can send mail *to* yahoo, but cannot use them for your primary mail server. You can usually only use your normal email server.

Use whatever SMTP server you have configured in your email client program.

Question (cont'd):

I changed the mail server to HOTMAIL... but, I got another error message of "Could not send:error=-1 Status:550 invalid address"

Invalid Address?? What's that means? FromAddress or Tolist?? I am sure the fromadress and tolist are true...

Thanks

----Simple code----
;Debug(@ON)

AddExtender("WWPST34I.DLL")
host="mail.hotmail.com"
fromaddr="min.zhang@cn.pwcglobal.com"
userid="valid e-mail account here"
password="valid password here"
port="" ;shall i put port number here(110)?
tolist="min.zhang@cn.pwcglobal.com"
cclist=""
bcclist=""
subject="Postie Extender"
msgfile="c:\config.sys"
attachments="c:\autoexec.bat"
flags="1"


kInit(host,fromaddr,userid,password,port)
kDest(tolist,cclist,bcclist)
kSendFile(subject,msgfile,attachments,flags) 

msg=kStatusInfo()
Message("Message?",msg)
---------End---------- 

Answer:

No. You *MUST* use your own mail server.

If you must use HotMail or Yahoo, then you are dealing with Web Pages and may want to use the WinInet extender instead.

The problem is that spammers try to use other peoples mail servers to send spam, so most administrators have set their mail servers up to only accept email from their own users, and reject email attempts from outside groups.

Question (cont'd):

I am using Lotus Notes v4.61a to send e-mail to user. Can I use Outlook?

Answer:

The source of the problem is that the you are using Lotus Notes to send the email. Unless the Notes server is configured to act as an SMTP server this won't work. Generally, proprietary email systems like Novell GroupWise, Microsoft Exchange and Lotus Notes, among many, have proprietary clients that don't use SMTP to send messages or POP3 to receive messages.

Some of these mail servers can be configured as POP3 servers to allow diverse email clients to be used to retrieve email messages. Some of them can also be configured as SMTP servers.

Almost always, in a private network of these email servers, there is one that does function as an SMTP server. This will be the one that serves as an email gateway between the Internet and the private email system.

In this case, to send a message via the Postie extender, the user will either need to identify an actual SMTP server in his network with either a direct Internet connection or the ability to relay messages to one or more internal SMTP servers that have a direct Internet connection.

In the absence of an SMTP server, then the user is left doing whatever Lotus has documented as being capable via a programming API which would allow an end user to send an email from a program. If the Lotus Notes client integrates with MAPI then it would be possible to use Outlook (via OLE) to send a message. If Lotus Notes does not integrate with MAPI then you will either have to make direct DLL function calls or use some sort of Lotus-supplied ActiveX control via OLE to send the email.

I would not recommend trying to use any functions that send key strokes to the Lotus Notes client. I would also not recommend trying to use the Control Manager extender since Lotus uses a lot of non-standard controls in their client. This happens since they run their client on multiple client platforms, many of which are non-Microsoft. Their development tools use a lot of controls that are custom "widgets" that are not part of the MFC. Just the look and feel of the Lotus Notes client on Win32 platforms is very "alien" when compared with other windows apps.

Yahoo mail is done via web interface. In order to send email via Yahoo you will need to use the Internet extender. This extender allows your script to act like a web browser; you can pull html from a web site and process it in your script. With enough effort, you should be able to automate the process for sending an email via Yahoo. I'm not sure about the particulars of sending attachments on Yahoo, though, so you might have a limitation of some sort with Yahoo mail.

Email is a non-trivial subject. You have to have a good understanding of how your email system works and what interfaces it supports when you want to send emails via a program instead of your normal email client.

You probably should talk to your Lotus Notes administrator and check out the Lotus Notes support (tech support, web site, developers'/users' groups, etc..) references for information on how to programmatically send an email message [with attachments].

Another area to do some reading is how SMTP and POP3 work. The O'Reily & Associates "In a Nutshell" series of books has one or two books in it that covers both SMTP and POP3. I would recommend that you get copies to brush up on standard Internet email handling.

Once you know how that works you will be able to determine more of what you have to do to send your email.

As for using Outlook, that is only possible if Lotus Notes integrates itself with Windows MAPI (32-bit). If Lotus Notes has a MAPI provider then you most likely could use Outlook. You would have to write a WinBatch script that would control Outlook via OLE.

Please note that many MAPI-enabled email systems have a requirement that you logon to the mail system (usually a username/password dialog box) as part of initializing the MAPI transport. Your script needs to be able to deal with this or the process will not be automated.

Also, please note that anything you do to automate this will require access to the windows desktop if it involves any programs that open windows or dialogs on the desktop. This can have an adverse impact on your script if it needs to run as a service on a WinNT system while the desktop is locked or if no user is logged on to the system.

Try....

AddExtender("WWPST34I.DLL")

host="au-aapmta001.aap.pwcinternal.com"  ;<==the mail server in your email header
fromaddr="youremailaddress.com"
userid=""
password=""
port=""
tolist="me@windowware.com"
cclist=""
bcclist=""
subject="Postie Extender"
msgfile="c:\config.sys"
attachments="c:\autoexec.bat"
flags=""


kInit(host,fromaddr,userid,password,port)
kDest(tolist,cclist,bcclist)
kSendFile(subject,msgfile,attachments,flags) 

msg=kStatusInfo()
Message("Message?",msg)

Article ID:   W14188
Filename:   Status 550 - Invalid Address and SMTP Mail Server Info.txt
File Created: 2017:07:28:13:58:37
Last Updated: 2001:11:29:16:14:32