Page 1 of 2 12>
Topic Options
#96727 - 2002-12-05 04:59 PM something for the FAQ forum
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
http://support.microsoft.com/default.aspx?scid=kb;en-us;173530
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#96728 - 2002-12-05 05:07 PM Re: something for the FAQ forum
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Added as -

Local vs. RAS Connections

I am sure there will be more details needed, but is a good start.

Thanks Rad!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#96729 - 2002-12-05 05:44 PM Re: something for the FAQ forum
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Idea for FAQ forum - dont think theres an article describing the various methods for automatically sending an email with kix, fe: blat,postie,com ... someone from my office asked me that just the other day - went searching in FAQ but no luck ...
Top
#96730 - 2002-12-05 05:49 PM Re: something for the FAQ forum
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Shawn,

There is no direct SMTP post per se' but...

File Operations

Option #4

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#96731 - 2002-12-05 06:26 PM Re: something for the FAQ forum
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Shawn,

Added..
How do I send e-mail from KiXtart? (SMTP)

Thanks!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#96732 - 2002-12-05 06:56 PM Re: something for the FAQ forum
Breaker Offline
Hey THIS is FUN
*****

Registered: 2001-06-15
Posts: 268
Loc: Yorkshire, England
Kent,

How about including Lonkero's SendMail UDF in this FAQ topic - doesn't it use basic telnet access to the SMTP server to provide mail capability? Since a telnet client is usually available on all platforms without any additional bits'n'pieces required it is a useful addition.

Of course, it assumes that the author of a script has knowledge of, and access to, their local SMTP server... there's always something...[sigh!] [Wink]

Good summary of a useful subject, though - the FAQs get better and better! Keep up the good work!

Cheers,

Breaker
_________________________
================================================
Breaker


Top
#96733 - 2002-12-05 07:16 PM Re: something for the FAQ forum
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
While you're at it, may as well include Howard's DLL implementation eh!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#96734 - 2002-12-05 07:31 PM Re: something for the FAQ forum
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Done. [Big Grin]

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#96735 - 2002-12-05 07:34 PM Re: something for the FAQ forum
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What about Jooel's Telnet thingy?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#96736 - 2002-12-05 07:36 PM Re: something for the FAQ forum
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I don't know if this fits in the scope of this..

That is..

quote:

Of course, it assumes that the author of a script has knowledge of, and access to, their local SMTP server... there's always something...[sigh!]

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#96737 - 2002-12-05 07:42 PM Re: something for the FAQ forum
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, now I have to confess that I haven't tried it but it looks simple enough.

EXAMPLE:
SendMail("19.101.210.22","Logonscript:"+@wksta,"Lonkero@@kix.bb.gov","test","I'm just testing... nothing more nothing less")
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#96738 - 2002-12-05 07:51 PM Re: something for the FAQ forum
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Ok..

I remember this now.

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000248#000000

code:
run '%comspec% /c start "SendMail '+$server+'" /MIN telnet $server 25'

(1) Are most people going to have access to Port 25?

(2) In digging into this you have to grab the Port-over of SENDMAIL from UNIX..

(3) From - http://slashdot.org/articles/99/09/25/1136218_F.shtml

That this is not Open Source for SendMail for NT.

If I am wrong, please point me in the right direction. [Smile]

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#96739 - 2002-12-05 07:53 PM Re: something for the FAQ forum
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
[Moderator (Sealeopard): Activated anti-long-lines-policy]

Kent, here is another method.

Email via "CDONTS.NewMail"

#Generate Email
#--------------
code:
my $objCDO = Win32::OLE->CreateObject("CDONTS.NewMail");
$objCDO->{From} = "User Name <SMSAdmin\@tycoelectronics.com>";
$objCDO->{To} = "$EmailAddr";
$objCDO->{Subject} = "Software Notification for PC $PCName";
$objCDO->{Body} = "$EmailText";
$objCDO->{BodyFormat} = 0;
$objCDO->{MailFormat} = 0;
$objCDO->Send;
$objCDO = 0;

quote:
Software Requirements
The dynamic-link libraries for CDO 1.2.1 (CDO.DLL) and CDO 1.2.1 Rendering (CDOHTML.DLL) are MAPI client object libraries. As such, they require MAPI (the version of MAPI32.DLL installed with Microsoft® Exchange Server version 5.0, or above) and service providers—for example, the same service providers as with Microsoft Exchange Server. CDOHTML.DLL and CDO.DLL are included with Microsoft Exchange Server and are installed on the server when the installation option Active Server Components is selected. CDO 1.2.1 Rendering (CDOHTML.DLL) is intended for server-side use only.

Microsoft® Outlook™ 98 installs the CDO 1.2.1 libraries. To enable client applications to use CDO 1.2.1, install Microsoft Outlook 98. For server applications, install Microsoft Exchange Server version 5.5.

Note CDO works with Microsoft Outlook, but CDO.DLL is not installed with the Microsoft Outlook 97 setup program.


Installing CDO for NTS

[ 05. December 2002, 20:12: Message edited by: sealeopard ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#96740 - 2002-12-05 08:09 PM Re: something for the FAQ forum
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Help !! Where are the LONG LINE POLICE!! We need help here. [Razz]
Top
#96741 - 2002-12-05 08:31 PM Re: something for the FAQ forum
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Sorry, had a Priority 1 ticket arrive that needed attention then found it was probably just a dumb client issue on a couple computers.

Has anyone else ever run into a system error 32 on the client when logging from the logon script? I am thinking the client's NAI AV software is causing contention because the AV software had no file exclusions configured.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#96742 - 2002-12-06 08:01 PM Re: something for the FAQ forum
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Howard,

I am not ignoring you. [Smile]

But, I am having trouble running:
code:
break on
$objCDO = CreateObject("CDONTS.NewMail")
IF @error <> 0
?@error " CDO not found"
SLEEP 2
EXIT 1
ENDIF
$objCDO.From = "CDOTest"
$objCDO.To = "user@@domain.com"
$objCDO.Subject = "Software Notification for PC"
$objCDO.Body = "More Testing"
$objCDO.BodyFormat = 0
$objCDO.MailFormat = 0
$objCDO.Send
$objCDO = 0

Thanks!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#96743 - 2002-12-06 08:50 PM Re: something for the FAQ forum
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mmm...
this seems to issue:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/moddev/html/deexasendingmailviasmtp.asp

anyway, what about:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting09112000.asp

also, my telnet sendmail is still missing from faq [Wink]
_________________________
!

download KiXnet

Top
#96744 - 2002-12-06 09:07 PM Re: something for the FAQ forum
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Kent, works for me [Razz]

Is it generating some error?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#96745 - 2002-12-06 09:47 PM Re: something for the FAQ forum
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
OK..

Still not quite there..

code:
; -- http://cwashington.netreach.net/depo/view.asp?Index=688&ScriptType=vbscript
break on

modSendMail("user@@server.com","CDOTest","Software Notification for PC","More Testing")

Function modSendMail($strTo, $strFrom, $strSubject, $strBody)

;declarations
Dim $iMsg
Dim $iConf

$iMsg = CreateObject("CDO.Message")
IF @error <> 0 ?@error " CDO Message not found" SLEEP 2 EXIT ENDIF
$iConf = CreateObject("CDO.Configuration")
IF @error <> 0 ?@error " CDO Config not found" SLEEP 2 EXIT ENDIF
$iConf.Item(cdoSendUsingMethod) = $cdoSendUsingPort
$iConf.Item(cdoSMTPServerPort) = 25
$iConf.Item(cdoSMTPConnectionTimeout)= 10
$iConf.Item(cdoSMTPServer) = "smtp.server.com"
;$iConf.Item(cdoURLGetLatestVersion)(True)
$iConf.Update

$iMsg.Configuration = $iConf
$iMsg.To = $strTo
;$iMsg.CC = "1234567890@messaging.nextel.com"
$iMsg.From = $strFrom
$iMsg.Subject = $strSubject
$iMsg.TextBody = $strBody
$iMsg.Send
; check for fail
If @error <> '0' ?@error " Unable to Send Mail" sleep 2 Exit EndIf
$mail = 0
EndFunction

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#96746 - 2002-12-06 09:53 PM Re: something for the FAQ forum
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Added in a link to Lonk's Telnet Sendmail UDF..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 2 12>


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.069 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org