Unless IIS is not installed on the NT box, SMTP should be available to use
as an alternate, I believe.
I use this particular javascript for sending email from just about anything
on the NT box, and it's worked on all our boxes so far (the IS guy refuses
to leave Netware)
var iMsg = CreateObject("CDO.Message");
iMsg.To = "[EMAIL PROTECTED]";
iMsg.From = "BLADUDE <[EMAIL PROTECTED]>";
iMsg.Subject = 'The subject';
iMsg.HTMLBody = 'The text';
iMsg.Send();
iMsg = null;
Maybe its useful, maybe not. hopefully, someone else has a better idea.
Good luck.
tim
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Keith Cornett
Sent: Wednesday, February 13, 2002 6:55 AM
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]
------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]