accessing a POP3 email box with PS

Welcome Forums General PowerShell Q&A accessing a POP3 email box with PS

This topic contains 2 replies, has 3 voices, and was last updated by

10 months ago.

  • Author
  • #101382

    Points: 13
    Rank: Member

    I have been challenged with finding a way to access a POP3 mailbox, pull down a message with an attachment, then forward it to another email address after manipulating the subject line. I have been doing some digging on the internet and I have not found anything the looks viable so I thought I would toss it out here to see if anyone has done something similar and can point me in the right direction.


  • #101383

    Points: 0
    Rank: Member

    I don't personally know of a ready made solution, but you might have more luck if you look for a .NET library that can do it. You should be able to use Add-Path to load the library in PowerShell, then you can use the classes and methods in the library directly from a script (or interactively from the terminal). I'd look for C# sample code, as it's easier to adapt it to PowerShell code.

  • #101419

    Points: 1,154
    Helping Hand
    Rank: Community Hero

    See of the below gets you started in the right direction.

    POP Mailbox using Powershell
    This function accesses a mailbox using POP3 and returns various bits of information including the number of messages and the size of the inbox.

    POP Mailbox using Powershell

The topic ‘accessing a POP3 email box with PS’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort