Send email from Outlook with Powershell !

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 36

  • @MrPowerScripts
    @MrPowerScripts  5 лет назад

    Website: mrpowerscripts.com
    Discord: discord.gg/uEBWZKq
    Patreon: patreon.com/mrpowerscripts
    SIGN UP: mrpowerscripts.com/mailing-list

  • @stephenbrincat7124
    @stephenbrincat7124 6 лет назад +1

    Thanks mate, worked flawlessly, great video, even managed to add attachment.

    • @MrPowerScripts
      @MrPowerScripts  6 лет назад

      glad to hear. thanks

    • @animeshchittora5693
      @animeshchittora5693 3 года назад

      Can you please help me to use attachment I am facing issues in it?

    • @stephenbrincat7124
      @stephenbrincat7124 3 года назад

      @@animeshchittora5693 send me your email and I'll forward you the script

  • @michakropkowski5636
    @michakropkowski5636 3 года назад

    Mr., you're genius!

    • @MrPowerScripts
      @MrPowerScripts  3 года назад

      I am not. I just read the documentation.

  • @ameenasif
    @ameenasif 3 года назад +1

    This code works , Good job you saved lot of work thanks a lot

  • @gauravlondhe5046
    @gauravlondhe5046 Год назад

    it works very well thanks it helps

  • @MrPowerScripts
    @MrPowerScripts  11 лет назад

    Not directly, but there are plenty of utilities that have command line interfaces which you can utilize with Powershell. Just google "Command Line Video Converter" and you should be able to find some resources.

  • @thendralarasu2203
    @thendralarasu2203 11 месяцев назад

    Not working with the following error.
    $OL : The term '$OL' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + $OL = New-Object -ComObject outlook.application + ~~~~ + CategoryInfo : ObjectNotFound: ($OL:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

  • @sumatysumaty4088
    @sumatysumaty4088 5 лет назад

    This video helps. Thank you.
    Could you please do a video to know how to auto forward the emails ?

  • @NicolasJ12
    @NicolasJ12 3 года назад

    Thanks for the brief and efficient tuto
    One thing I can't figure out is how to send that same email from different email accounts defined in my Outlook
    Any ideas?

  • @MrPowerScripts
    @MrPowerScripts  11 лет назад

    You can actually send emails very easily in Powershell using the Send-MailMessage cmdlet (3.0). This video was just a simple demonstration to see the Outlook Object Model in action, which I plan to explore more in the future. :)

  • @djbv808
    @djbv808 3 года назад

    Hey Mr powershell this is awesome thanks for the video I'm using this as part of a bigger script for automation but I'm becoming stuck as I also want to add an attachment to the email so far my attempts have failed! Any input greatly appreciated!

  • @ByronDReese
    @ByronDReese 11 лет назад

    cool video. could you possibly do a video on using using powershell with MS excel?

  • @tech2go224
    @tech2go224 3 года назад

    Thank you for this video! i would to ask, what if i have several emails in my outlook and would like to define the one that will send the email? how do i do that?

  • @MrPowerScripts
    @MrPowerScripts  11 лет назад

    Absolutely! I've worked with a number of scripts that can manipulate excel. Let me see some simple examples I can put together. Hopefully i'll have something uploaded this weekend.

  • @adityabadhe3295
    @adityabadhe3295 5 лет назад

    Hi, Could you help me with this? So I need to move messages with specific words in the body to a folder in outlook using powershell

  • @fayyazali2217
    @fayyazali2217 4 года назад

    Hi, I need to send an automated email from outlook 2013 using powershell at a perticular time. Please help me to write the script. Also I am not able to find the SMTP server in my office outlook. Can you please help. Regards

  • @portentouslad5051
    @portentouslad5051 8 лет назад

    is there a way to add new/additional mailboxes/accounts to outlook vie powershell? Looking to simplifying that process for many users.

    • @MrPowerScripts
      @MrPowerScripts  8 лет назад

      +Portentous Lad Like this? social.technet.microsoft.com/Forums/office/en-US/a7c357c5-7f80-4059-9872-c1409acfc536/powershell-add-mail-profile?forum=outlook

    • @portentouslad5051
      @portentouslad5051 8 лет назад

      yes that's kind of it. I just haven't added the module yet to test it since it's my work laptop. Is it an official one? And further more, do you need a pssnap-in for the excel stuff in your other video too?

    • @MrPowerScripts
      @MrPowerScripts  8 лет назад

      +Portentous Lad The excel video is just native Powershell code interacting with Exel through the Excel Object Model via a Com interace. You may be able to do what you need to do by manipulating Outlook via the Com interface as well, which is what i'm doing in the video above. I'm not sure though. Some snap-ins/modules can make the process easier.
      msdn.microsoft.com/en-us/library/ms268893.aspx

  • @tracynguyen4458
    @tracynguyen4458 6 лет назад

    Hi, Thanks for this video, very helpful! Can you please show code on how to attach files? I tried the below but got this error message: $mItem.Attachments = "X:\test.xlsx"
    Exception setting "Attachments": "Property is read-only."
    At line:23 char:8
    + $mItem.

    • @MrPowerScripts
      @MrPowerScripts  6 лет назад

      Hello Tracy. Here's the docs on the Attachments object. You'll see that you need to use the Add method on the attachements object to attache a file. It might look something like $mitem.Attachments.Add('path/to/file') msdn.microsoft.com/en-us/vba/outlook-vba/articles/attachment-object-outlook

  • @ehfo
    @ehfo 6 лет назад

    pls do one with attachment

  • @immanuelsuleiman7550
    @immanuelsuleiman7550 4 года назад

    this is baller as fuck

  • @MrPowerScripts
    @MrPowerScripts  11 лет назад

    Check the latest video. It's about excel.