This script uses the .NET Classes System.Net.Mail.Mailmessage, System.Net.Mail.MailAddress and System.Net.Mail.SMTPClient to format and send a SMTP message to a SMTP Server.
Note that this script uses LocalHost as the SMTP host operating on Port 25 (in my case, this is correct). You may need to adjust this in your own environment.
to send email with PowerShell is pretty easy, fine, but is it that easy to access e.g.my mailbox at google (http://mail.google.com => my..firstname.lastname@example.org + PWD) to download some selectedd emails from there?
I haven't found anything anywhere. That was all for outlook account or Win.Server.. :(
Thanks in advance,
let me add a bit,
I'd like to do a POP3 access:
& Port: 995
I''ve not seen any POP3 client type classes in the .NET Framework.
Check out NetCmdlets from n/Software. They have cmdlets for a variety of sources including POP, IMAP, IM SMS.
Good point Richard - I was thinking just inside the .NET Framework.