AutoIt Posted November 1, 2004 Posted November 1, 2004 :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
Developers Jos Posted November 1, 2004 Developers Posted November 1, 2004 :Do you know what the ip address is of the notesserver ?:try to ping the hostname or ip address before trying blatunfortunately nothere 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 serverie. 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.
john925 Posted November 1, 2004 Posted November 1, 2004 :Do you know what the ip address is of the notesserver ?:try to ping the hostname or ip address before trying blatunfortunately nothere 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 serverie. 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?
SlimShady Posted November 2, 2004 Posted November 2, 2004 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.
ezzetabi Posted November 2, 2004 Author Posted November 2, 2004 @ezzetabi I've successfully used _EmailSend() to send email through an SMTP server that requires authentication.Great news. Thanks.
RocTx Posted November 2, 2004 Posted November 2, 2004 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
AutoIt Posted November 3, 2004 Posted November 3, 2004 : 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 )
AutoIt Posted November 3, 2004 Posted November 3, 2004 (Example: blat -install KPMAIL RocTx@company.com)I did thisblat -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.netDo not understand argument: 123456@mobile.att.netWin32 console utility to send mail via SMTP or post to usenet via NNTPby P.Mendes,M.Neal,G.Vollant,T.Charron,T.Musson,H.Pesonen,A.Donchey,C.Hyde http://www.blat.netsyntax: 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
AutoIt Posted November 3, 2004 Posted November 3, 2004 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
AutoIt Posted November 3, 2004 Posted November 3, 2004 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
Developers Jos Posted November 3, 2004 Developers Posted November 3, 2004 next, I started Sysinternals TcpView.exethis 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 1352once I resolved the remote servername to an ip address, I also triedblat -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 neededbtw, if I run plain blat -install (and servername), the default port is 25 but I do not have port 25 openand TcpView shows the remote server on port 1352, so I triedblat -install (the server) 1 1352, which set it to port 1352still, 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.
RocTx Posted November 3, 2004 Posted November 3, 2004 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
RocTx Posted November 3, 2004 Posted November 3, 2004 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
Matt @ MPCS Posted November 3, 2004 Posted November 3, 2004 Thanks for that note on the registry... I will be using that instead of trusting blat to control their registry. Thanks RocTx. *** Matt @ MPCS
ezzetabi Posted November 3, 2004 Author Posted November 3, 2004 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...
Matt @ MPCS Posted November 3, 2004 Posted November 3, 2004 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
tff2 Posted February 17, 2006 Posted February 17, 2006 (edited) 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 February 17, 2006 by tff2
mikeytown2 Posted February 17, 2006 Posted February 17, 2006 (edited) 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 February 17, 2006 by mikeytown2 Email: POP3 & SMTP using SSL/TLS (OpenSSL)Email: IMAPEmail: Base64 & SMTP login & Send email direct to MX Server (thanks blindwig)Win: Hook Registry ChangesWin: Read/Write to Alternate Data Streams (ini example)Utility: GPS Distance Calculations, Vincenty and Haversine formulas; angles and elevationUtility: Dell Laser Printer (3000-5100) - Print LoggerUtility: Reset Router when Wireless Link FailsUtility: ImageMagick Batch jpg ProcessorVideo HCenc Batch FrontendVideo: *DEAD* YouTube Video Encoder (avs/avi to flv)Software On CD's I Like<<back|track3 Ultimate Boot CD for Windows SpinRite Ubuntu ophcrack
Cave Posted April 13, 2006 Posted April 13, 2006 Can anyone tell me what the actual command is for using a file as the text of the message? Please fill in the blank with the syntax. Thanks! $TEXT = ????
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now