So as part of a larger script I'm working on I have to send an email with results Whenever I use a number in the Subject field not only is the number not send BUT the mailmessage is never sent and no error message appears. I used try / catch even for haha's but there are not errors to be caught, it's quite perplexing. Anyone else ever run into this problem? If I use alphabetical characters it functions fine, but numbers seem to cause issues :-/
Send-MailMessage -SmtpServer("mailserver.fakecorp.com") -From("Nagios.Monitor@fakecorp.com") -To("Adamk@fakecorp.com") -Subject("30") -Body("$arrProbURLs")