Recommended Posts

:Do you know what the ip address is of the notesserver ?

:try to ping the hostname or ip address before trying blat

unfortunately no

there is no way to ping the lotus 6.5 client named mail server as it is likely a translated value from a Windows 2003 Active Directory server

ie. ping ABCDE1234 just returns no such server in AD and the domino server is likely maintained in another domain than the one into which I am logged on

Share on other sites

:Do you know what the ip address is of the notesserver ?

:try to ping the hostname or ip address before trying blat

unfortunately no

there is no way to ping the lotus 6.5 client named mail server as it is likely a translated value from a Windows 2003 Active Directory server

ie. ping ABCDE1234 just returns no such server in AD and the domino server is likely maintained in another domain than the one into which I am logged on

<{POST_SNAPBACK}>

Live for the present,
Dream of the future,
Learn from the past.

Share on other sites

:Do you know what the ip address is of the notesserver ?

:try to ping the hostname or ip address before trying blat

unfortunately no

there is no way to ping the lotus 6.5 client named mail server as it is likely a translated value from a Windows 2003 Active Directory server

ie. ping ABCDE1234 just returns no such server in AD and the domino server is likely maintained in another domain than the one into which I am logged on

<{POST_SNAPBACK}>

Can you get information about the mailserver by looking at the header from a piece of mail sent to you from this system?

no

Share on other sites

I have sent a mail at work using Lotus Notes to my personal account.

I don't feel comfortable posting the full header because it contains IP address and hostnames.

If you tell me what information you need, I'll post it.

Share on other sites

@ezzetabi I've successfully used _EmailSend() to send email through an SMTP server that requires authentication.

Great news. Thanks.

Share on other sites

The way I installed mine was as follows:

blat -install DominoServername RocTx@company.com

Example: blat -install KPMAIL RocTx@company.com

Do not use Servername/SVR/SVR01. won't work. Just use the Servername by itself.

Do a quick test by opening a "Dos" prompt and typing a quick email such as;

blat -to 1234567890@vtext.com -body "Test Message"

In the above example, @vtext.com happens to be Verizon's email domain

for their wireless phones.

If succcessful, it will tell you so and you'll get the message on your cell phone.

The registry entry doesn't bother me.. and I'm not on a shared computer.

I've set this up on other computers I use and I "do not" have to have the Notes client running for it to work.

Hope this helps,

RocTx

Share on other sites

: blat -install KPMAIL RocTx@company.com

: I "do not" have to have the Notes client running for it to work.

thanks

I wonder how it could work on "another machine" as each machine on our lan has the users .id file on the local c:\notes\data folder and notes client itself presents a logon password challenge if started

will try it out tomorrow, I thought perhaps it would force use of the local .id (ie. roc_lastname.id )

Share on other sites

(Example: blat -install KPMAIL RocTx@company.com)

I did this

blat -install ABCDE123 myemail@mycompany.com

(blat -to 1234567890@vtext.com -body "Test Message")

I did this and response from blat is shown below

D:\BLAT222\full>blat -to 123456@mobile.att.net -body "test message"

Blat v2.2.2 (build : Feb 26 2004 10:37:13)

Blat saw and processed these options, and was confused by the last one...

123456@mobile.att.net

Do not understand argument: 123456@mobile.att.net

Win32 console utility to send mail via SMTP or post to usenet via NNTP

by P.Mendes,M.Neal,G.Vollant,T.Charron,T.Musson,H.Pesonen,A.Donchey,C.Hyde

syntax:

Blat <filename> -to <recipient> [optional switches (see below)]

Blat -profile [-delete | "<default>"] [profile1] [profileN] [-q]

Blat -h

Share on other sites

here's another copy of a command session

where I have changed my true email to myname.myemail and servername from the true servername to ABCDE123

D:\BLAT222\full>echo "hello" > test.txt

D:\BLAT222\full>type test.txt

"hello"

D:\BLAT222\full>blat test.txt -to myname.myemail -body "test"

Blat v2.2.2 (build : Feb 26 2004 10:37:13)

Sending stdin.txt to myname.myemail

Error: Can't resolve hostname (ABCDE123).

this is on a machine where I am logged as Administrator, running XP Pro SP1 and Lotus Notes 6.5 is not running

I then tried it by starting the notes client, got same results

Share on other sites

next, I started Sysinternals TcpView.exe

this shows me the server connections and I quickly learned that the servername in the lotus notes 6.5 client (ABCDE123) is not the server connected to and listening on port 1352

once I resolved the remote servername to an ip address, I also tried

blat -install (the IP address) and

blat -install (the firstnode name part)

while blat accepts the install, the socket error persists so something else must be needed

btw, if I run plain

blat -install (and servername), the default port is 25 but I do not have port 25 open

and TcpView shows the remote server on port 1352, so I tried

blat -install (the server) 1 1352, which set it to port 1352

still, same results, no go

Share on other sites

next, I started Sysinternals TcpView.exe

this shows me the server connections and I quickly learned that the servername in the lotus notes 6.5 client (ABCDE123) is not the server connected to and listening on port 1352

once I resolved the remote servername to an ip address, I also tried

blat -install (the IP address) and

blat -install (the firstnode name part)

while blat accepts the install, the socket error persists so something else must be needed

btw, if I run plain

blat -install (and servername), the default port is 25 but I do not have port 25 open

and TcpView shows the remote server on port 1352, so I tried

blat -install (the server) 1 1352, which set it to port 1352

still, same results, no go

<{POST_SNAPBACK}>

Port 1352 is used by Domino to communicate between Server and client.

Think you have proven now with the above test that there is no SMTP service running on this notesserver server....

You could try to find the SMTP gateway IP address that is used to communicate with the internet.

You could try if you can retrieve the MX record from you internal DNS server to see if that contains a valid SMTP server.

Live for the present,
Dream of the future,
Learn from the past.

Share on other sites

Hmmmm.. I had the same issue when I first installed it.. when I did it a second time it took.. thereafter it works everytime. Run through the install again.

Another thing to try is ping your server (to make sure you can see it) and take

not of the entire hierarchy. It should display the IP address and full qualified name. Look in the Name & Address book under your person document and check for the mail server name (just double checking).

RocTx

Share on other sites

FYI...

This is the Registry entry it creates.. if you were curious.

Registry entry:

My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Public Domian\Blat

Default REG_SZ (value not set)

Pwd REG_SZ

Sender REG_SZ RocTx@company.com

SMTP Port REG_SZ 25

SMTP Server REG_SZ MailServerName

Try REG_SZ 1

MailServerName = KPMAIL (not KPMail/ou/ou)

RocTx

Share on other sites

Thanks for that note on the registry... I will be using that instead of trusting blat to control their registry. Thanks RocTx.

*** Matt @ MPCS

Share on other sites

Uff... The idea behind my script was making a easy Mailsender that didn't need registry and other strange settings and instead it is already 3 pages of strange problems and situations with even more strange solutions...

Share on other sites

Don't worry ezzetabi, yours is still useful for basic mail sending... I will actually be customizing my own mail send function I wrote about a month ago. It allows more options but at the heart is not far from yours. The biggest difference is mine can be used for any command line SMTP transaction and yours is blat specific. I would share but it also took me a couple months to write and is used for all company wide batch mailing. Wouldn't want to release our secret weapon. I like yours though, I actually updated mine a bit after I saw how you did yours. Great code!

*** Matt @ MPCS

Share on other sites

Just found this au3, tried it and I´m getting that error :

Line 0  (File "C:\test.exe"):

Local $SMTP,$SENDER, $DEST,$SUBJECT, $TEXT,$LOGFILE, $LOG,$H = -1, $C,$E
Local ^ ERROR

Error: Can not redeclare a parameter inside a user function.

Anyone might help ?

Thanks !

PS: I´m using AutoIt Beta 108...

Edited by tff2

Share on other sites

Just found this au3, tried it and I´m getting that error :

Line 0  (File "C:\test.exe"):

Local $SMTP,$SENDER, $DEST,$SUBJECT, $TEXT,$LOGFILE, $LOG,$H = -1, $C,$E
Local ^ ERROR

Error: Can not redeclare a parameter inside a user function.

Anyone might help ?

Thanks !

PS: I´m using AutoIt Beta 108...

tff2 Hey good to see a new person on the board, anyway there is already a udf in the beta that can send email without an external exe program. Its called _INetSmtpMail. you can read about it in the beta help file located on most computers here

C:\Program Files\AutoIt3\beta\AutoIt.chm

If that one doesn't work for you try an updated one over here, with login support added.

Create an account

Register a new account