In this age of proliferation of "Spam", SMTP servers are commonly configured such that a client program wishing to send email via the server must authenticate, that is, provide identification credentials in the form of a user name and password. NetMailBot provides the -authlogin and -authpassword parameters, respectively, for use in specifying these credentials.
Using NetMailBot's -debug parameter logs all of the interaction between NetMailBot and the SMTP server to a log file. The details in the log file can point out instances when you need to use NetMailBot's authentication parameters in order to be able to send email with that SMTP server.
Prepared Example Files
The archive contains one file:
Batch File Contents
This is the content of the batch file:
NetMailBot -to email@example.com -from firstname.lastname@example.org -subject "simple send with authentication" -server mail.mailserver.com -authlogin userid -authpassword password -logfile "c:\tmp\log.txt" -debug
NOTE: If you don't know your authentication credentials, ask your system administrator or ISP. If you don't have or can't get such credentials for the chosen SMTP server, you probably won't be able to use that SMTP server for sending your mails, or you might be restricted to only sending mails to recipients within the same domain (i.e. if your server is smtp.mycompany.com, you might only be able to send emails to recipients whose email addresses are in the form email@example.com).