Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Mail command for Windows

Options
  • 06-09-2004 6:08pm
    #1
    Registered Users Posts: 1,165 ✭✭✭


    Righto, I've written this script that takes the important
    bits out of log files created on a WinXP machine.

    Now I want to mail it to myself or others. Is there an
    application that I can use (like the 'mail' or 'mailx' command
    in Unix) that I can call in a script that will mail me the file
    without any user interaction??

    I've googled for it, but all it throws back is email programs
    like outlook or eudora or similar.

    BTW, this isnt for some lame script kiddie hacker rubbish, its
    for serious Sys Admin purposes in case anybody is wondering...


Comments

  • Registered Users Posts: 1,165 ✭✭✭Stky10


    Oh by the way, I realise I can do this easily in Perl, but then
    I'd have to go to the bother of installing Perl on every machine
    I want the script to run on, and I only want to do that if I
    really really have to.


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 91,821 Mod ✭✭✭✭Capt'n Midnight


    http://www.blat.net/ - command line util to send attachments, you need an smtp server but you probably have one already


  • Closed Accounts Posts: 545 ✭✭✭ColmOT [MSFT]


    If you're using VBScript, and have an SMTP Server somewhere in the domain, then just use CDO from within the VBScript...it's dead easy...

    ---->


    set objMessage = CreateObject("CDO.Message")
    objMessage.Subject = "Sample CDO message from VBScript"
    objMessage.Sender = "me@mydomain.ie"
    objMessage.To = "you@yourdomain.ie"
    objMessage.TextBody = "Sample text"
    objMessage.Send

    <


Advertisement