I am trying to send emails from a powershell 2.0 script. Messages send to other recipients on my domain are properly delivered, but external domains cannot receive the messages. I have tried passing the external email address to send-mailmessage as a string, as an array, and explicitly as the only argument for that class of recipient, and the message doesn't go out. I am relaying off an SMTP connector I added to my Exchange 2007 server. Any ideas? I get an error message back that says "Unable to send to a recipient'
Send-Mailmessage <<<< -To $testto -From $Mailfrom -Cc $testcc -Subject "..." -Body "..." -SmtpServer "x.x.x.x" +CategoryInfo : InvalidOperation: (System.Net.Mail.SmtpClient:SmtpClient) [Send-Mailmessage], SmtpFailedRecipientsException +FullyQualifiedErrorID : SmtpFailedRecipientsException,Microsoft.PowerShell.Commands.SendMailmessage
Is this a resolution error? I am using a gmail account as a test recipient.