Jump to content

_EmailSend() Func. Ready to use.


ezzetabi
 Share

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

Link to comment
Share on other sites

  • Replies 83
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Developers

: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}>

Does your Location Document say anything about the Mailserver ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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?
Link to comment
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

Link to comment
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 )

Link to comment
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

http://www.blat.net

syntax:

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

Blat -install <server addr> <sender's addr> [<try>[<port>[<profile>]]] [-q]

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

Blat -h

Link to comment
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

Login name is myname.myemail@mycompany.com

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

Link to comment
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

Link to comment
Share on other sites

  • Developers

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.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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

Link to comment
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)

Login REG_SZ

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

Link to comment
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...

Link to comment
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

Link to comment
Share on other sites

  • 1 year later...

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
Link to comment
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.

http://www.autoitscript.com/forum/index.ph...ndpost&p=148460

and about your error i would need to see more of the code to figure it out but you could try removing $smpt from the local line. its saying its already declared, and right there you are trying to declare it again.

Good luck, and write back!

Edited by mikeytown2
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...