Hi,
exchange 2010 SP1
and i am going to send a message using send-mailmessage powershell cmdlet
Send-MailMessage -From myemail@mycompany.com -To friend@mycompany.com -Subject "Just a test" -SmtpServer hubcasserver01 -Body "Hi" -Credential myemail@mycompany.com
i ran the script after running powershell with my own credential and it did not work so as u see above i decided to use -credential switch ! and i added my own email address. after running command it asks for password and after that it fails (also i tested it with mycompany\myemail)
i get error :
Send-MailMessage : Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender
At line:1 char:17
it is silly ! cause it is my own email and i am sending from that
Payne is back