Wednesday, June 25, 2014

Windows out of the box cmd send mail one liner with variables in subject/body

powershell -Command "Send-MailMessage -To to@recepient.com -Cc cc@recepient.com -From from@sender.com -SmtpServer 127.0.0.1 -Subject $('Mail from computer: ' + (hostname)) -Body $((date).ToString() + ' Mail from computer: ' + (hostname))

4 comments:

  1. Thanks! No need for me to install telnet now :)

    ReplyDelete
    Replies
    1. Based on the good things said on tomshardware about Cheapest Windows and Office Product Key Sale , I actually went for it and bought a windows 10 pro
      key from them, having got the .iso file from the Microsoft Technet pages.
      I have been using it for just under a week now and no problems.
      Put simply, it's legit!
      high recommendation!

      Delete
    2. Based on the good things said on tomshardware about Cheapest Windows and Office Product Key Sale , I actually went for it and bought a windows 10 pro
      key from them, having got the .iso file from the Microsoft Technet pages.
      I have been using it for just under a week now and no problems.
      Put simply, it's legit!
      high recommendation!

      Delete

    3. free windows 7 key , windows 10 activation wizard , product key windows 7 enterprise sp1 , free windows xp home edition sp2 product key , cheap windows and office product keys , get windows server 2016 keys discount , multipoint server 2011 product key , windows 7 home premium service pack 1 product key , lTSIIt

      windows 7 ult key sale online

      buy office pro plus 2016 keys

      cheap windows 10 pro keys for sale

      windows server 2016 standard key sale and download

      buy windows 7 ult keys online

      Delete