Send mail via CMD console

前端 未结 4 1901
夕颜
夕颜 2021-02-05 14:56

Hi i want to send mail via microsoft cmd console. I tried many way, but i didnt succeed.

i tried this article http://jpsoft.com/help/index.htm?sendmail.htm

<         


        
4条回答
  •  隐瞒了意图╮
    2021-02-05 15:52

    Unless you want to talk to an SMTP server directly via telnet you'd use commandline mailers like blat:

    blat -to you@example.com -f me@example.net -s "mail subject" ^
      -server smtp.example.net -body "message text"
    

    or bmail:

    bmail -s smtp.example.net -t you@example.com -f me@example.net -h ^
      -a "mail subject" -b "message text"
    

    You could also write your own mailer in VBScript or PowerShell.

提交回复
热议问题