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]

Reply via email to