Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 15005

Send-mailmessage does not work even with my own credential, permission send as error

$
0
0

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


Viewing all articles
Browse latest Browse all 15005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>