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.