Keith

1. I would be inclined to use a freeware utility which is accessible on the
net called "Blat" assuming that you have a port 25 that you can point at (do
a search on blat if not I can send you a copy). 

2. You can do me a favour and tell me where you got the information on
sending mail using VB or would you be able to send me a soft copy of the
info.

Regards

Marc Mearns


-----Original Message-----
From: Keith Cornett [mailto:[EMAIL PROTECTED]] 
Sent: 13 February 2002 14:55
To: NT 2000 Discussions
Subject: E-mail script


I have an e-mail script that will send a message when a batch job fails. 
The problem is, it will not work on a server that is not in the Exchange
domain.  The logon box interactively requires authentication to the domain
before the message is sent.  How can this domain authentication be included
in the script?  The other option is to install SMTP and modify the script
accordingly.  Could someone advise as to how to do this?  Below is a copy of
the script.

Thanks,
Keith
[EMAIL PROTECTED]

-----------------------------
Dim objOutlook
Dim objNameSpace

Dim mItem

Dim strReceipient
Dim strSubject
Dim strBodyText
Dim strMsg

Const olMailItemm = 0

        strReceipent = "[EMAIL PROTECTED]"

        strSubject = "Test"

        strBodyText = "This is a test!"

        Set objOutlook = CreateObject("Outlook.application")
        Set objNameSpace = objOutlook.GetNamespace("MAPI")
        Set mItem = objOutlook.CreateItem(olMailItem)
  
        mItem.To = strReceipent
        mItem.Subject = strSubject
        mItem.Body = strBodyText

        mItem.Save
        mItem.Send

  If strReceipent = "" Then
    Msgbox "No Receipient provided.  Mail not sent", vbInformation,"Mail
Error"
  End If

' ****  Clean up
'
    Set mItem = Nothing
    Set objNameSpace = Nothing
    set objOutlook = Nothing
------------------------------   

------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]


This email and any attached files are confidential and copyright protected.
If you are not the addressee, any dissemination of this communication is
strictly prohibited. Unless otherwise expressly agreed in writing, nothing
stated in this communication shall be legally binding.



------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to