Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using BLAT to automate EMail

Status
Not open for further replies.

angiole

Programmer
Oct 29, 2001
166
CA
Hello,
I'm posting this item here because a keyword search revealed a lot of expertise for this item was in this forum.

PROBLEM:
========
I am attempting to use BLAT to batch email. We are an exchange environment, and BLAT requires the smtp address.

I entered the following:

C:\WINNT\SYSTEM32>blat - install "@drhc.com" "ab.bb@drhc.com" 1 25

with the result:

SMTP server set to @drhc.com on port 25 with user aa.bb@drhc.com, retry 1 time(s)

I now try to send myself something:

C:\WINNT\SYSTEM32>blat "rsvp.ini" -t "aa.bb@drhc.com"

with the result:

Sending rsvp.ini to aa.bb@drhc.com
Login name is aa.bb@drhc.com
Error: Can't resolve (mailserver) hostname.Error: Not a socket.
C:\WINNT\SYSTEM32>

I probably do not have the smtp server set properly.
We are new to Exchange. I am also doing this underground.
Basically I am unsupported in this effort.

I assure you this effort is legit. I am migrating delimited message files to users on their desktops, some in the neighborhood of 15,000 messages, plus attachments.

I programmatically developed a proc in VB (works great) but Outlook 2002 has blessed me with an unbypassable warning of messages originating from an external program. For 15,000 messages this will not do.

QUESTION:
=========

Can I find my smtp address using a utility, or through the registry?

Cut my teeth on DOS, so I'm not afraid of command line work.

Many thanks in advance to anyone who can provide some insight.

Angelo A 8~)



AA 8~)
 
You should have a host name and a domain for your Exchange Server

eg: my_exchange_server.acme.com

Installing Blat should then be:

blat -install my_exchange_server.acme.com myname@acme.com
 
Thanks,
The question is how do I find this piece of information.
I ping localhost and it provides the following:

Pinging nca6762633e.drhc.com [127.0.0.1] with 32 bytes of data

Is this the server name?

Thanks again

AA 8~)
 
Er...where is your Exchange Server installed? On the local machine? In which case the host name is nca6762633e.drhc.com
 
Thanks strongm

This is a typical LAN environment, so is the server on the LAN, my guess is yes, and outlook 2002 is the desktop client.

I responded with the ping message before in case someone might find it useful in answering the question.

Hope helps.

AA

AA 8~)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top