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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Mail command for Windows

  • 06-09-2004 5:08pm
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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: 93,599 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