More Console Programs Site Home

SendMail & POP3 - Command Line (Console) Programs for Sending and Receiving Emails


Introduction

This package includes two command line (console) programs. Both support plain connection and secured connection (SSL).

SendMail Command Line Parameters
No Parameter Notes
1 Server Name
  • If the port is not 25, it must follow the server name. For example smtp.gmail.com:465
  • If secure connectin required, it must be specified like: smtp.gmail.com:465,ssl
2 User Name If name contains spaces, it must be enclosed with ". For example: "John Smith"
3 Password If password contains spaces, it must be enclosed with ". For example: "my pass word"
4 Sender's Email Address Example: xuebrothers@gmail.com
5 Recipient's Email Address Example: support@xuebrothers.net
6 Message Subject If subject contains spaces, it must be enclosed with ". For example: "Happy Birthday Present"
7 Message Body Message body can be:
  • inline text
  • a text file
  • a HTML file
  • a MHT file
If message body contains spaces, it must be enclosed with ". For example: "f:\my documents\my home page.mht"
POP3 Command Line Parameters
No Parameter Notes
1 Server Name
  • If the port is not 110, it must follow the server name. For example pop.gmail.com:995
  • If secure connectin required, it must be specified like: pop.gmail.com:995,ssl
2 User Name If name contains spaces, it must be enclosed with ". For example: "John Smith"
3 Password If password contains spaces, it must be enclosed with ". For example: "my pass word"
Buy