send test email from server using powershell

use below code to send test email from server to check whether you are able to connect to smtp server.

send-mailmessage -from (“[give email address here]”) -to (“[give email address here]”) -subject “[wubject text here]” -body “[body of message here] ” -smtpServer “[smtp server name]”

send-mailmessage -from (“tek-jedi@tek-jedi.com”) -to (“tek-jedi@tek-jedi.com”) -subject “Test smpt” -body “testing smtp server email ” -smtpServer “smtp.tek-jedi.com”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s