Steve Borba

My notes, I hope they help you, feel free to comment/add to them

SMTP

Quick Note on sending an email with just using putty or telnet

putty -raw -P 25 192.168.7.251

HELO home.steveborba.com
MAIL FROM: steve@steveborba.com
RCPT TO: steve@steveborba.com
DATA
From: "Someone" 
To: "Myself" 
Subject: Testing email - 1

Steve,
  Testing this email thing.
Thank you,
Steve
.
quit

or with authentication and powershell

$mailParams = @{
    From        = "steve@steveborba.com"
    To          = "somewhere@else.com"
    Subject     = "SMTP Authentication Test"
    Body        = "This is a test email to verify PowerShell SMTP authentication."
    SmtpServer  = "mx1-us1.ppe-hosted.com"  # Change to your SMTP host
    Port        = 587                   # Common ports: 587 (TLS), 465 (SSL), or 25
    Credential  = Get-Credential
    UseSsl      = $true                 # Required for secure connections (TLS/SSL)
}
Send-MailMessage @mailParams

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>