Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Send-mailmessage cmdlet not sending mail

$
0
0

hi

I am using send-mailmessage cmdlet in one scripts from my domain machine to send one attachment to my user id. I have added my IP on SMTP/Relay server also.

Send-mailmessage -from "user1 <user1@domain.com> -to "user2 <user2@domain.com>" -subject " Test Mail " -attachment " File details " -smtp <IP>

This cmdlet executes without any error but mail is not trigeer to respective user. Telnet to smtp server works from my machime on 25 port.

OS - Win 7 SP1 ; Powershell Ver - 2.0

Help me what need to check more.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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