accessing a POP3 email box with PS

This topic contains 2 replies, has 3 voices, and was last updated by  postanote 3 weeks, 1 day ago.

  • Author
    Posts
  • #101382

    Nathan W
    Participant

    Hello!
    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.

    Thanks!!!

  • #101383

    Rohn Edwards
    Participant

    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

    postanote
    Participant

    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.

You must be logged in to reply to this topic.