• i get the sense you might be new to both powershell and SMTP;

    think it through...you cannot use a feature without using the service behind it, so you must use someones smtp mail server to send email.

    again, your organization does not have to have an SMTP mail server. if you are a lone developer, you don't run your own email service, you use someone else's mail server, whether it's company mail or gmail or whatever. that can go all the way up the food chain; lots of huge companies with tens of thousands of employees use Office365 (someone else's servers) instead of hosting their own.

    here's a nice example of sending an email via powershell. all you need is the details on the username/password/server.

    http://www.adminarsenal.com/admin-arsenal-blog/powershell-sending-email-with-gmail-example/

    ##############################################################################

    $From = "YourEmail@gmail.com"

    $To = "AnotherEmail@YourDomain.com"

    $Cc = "YourBoss@YourDomain.com"

    $Attachment = "C:\temp\Some random file.txt"

    $Subject = "Email Subject"

    $Body = "Insert body text here"

    $SMTPServer = "smtp.gmail.com"

    $SMTPPort = "587"

    Send-MailMessage -From $From -to $To -Cc $Cc -Subject $Subject `

    -Body $Body -SmtpServer $SMTPServer -port $SMTPPort -UseSsl `

    -Credential (Get-Credential) -Attachments $Attachment

    ##############################################################################

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!