Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

How to get Send mail working?

$
0
0

Hi,

I am very new to powershell.  I am trying to send an email from windows server 2008 R2 machine.

I tried this cmdlet;

send-mailmessage -to "name@domain.com" -from "name@domain.com" -subject "Test mail from powershell" -SmtpServer smtp.domain.net

I dont get any error message but I am not getting the email either.  How do I get this working?  Is there anyway to see what is happening, am I getting an error in the cmdlet or its blocked somewhere?  How do I troubleshoot this?

And I tried looking for this information on internet for few hours now, either I dont find it or I dont understand properly how to proceed.

Thanks for your answers.


Viewing all articles
Browse latest Browse all 10624

Trending Articles