Friendly Addressing
Previous Topic  Next Topic 



This example demonstrates how to use NetMailBot's "Friendly" names parameters to make mails more personable.


SMTP allows the specification of "friendly" names in addition to the "normal" email addresses used. For instance, we usually work with cryptic email addresses such as "" which aren't very personable. If this example is John Walker's address, we can use NetMailBot's -tofriendly parameter to include e.g. "John Walker" in outgoing mail headers. Then when John gets an email from us, he will see that it was addressed to "John Walker" and not just the more cold and anonymous "". The same idea applies to -fromfriendly.


A common mistake is to confuse the parameter specifiers for the -to and -from parameters with those for -tofriendly and -fromfriendly-to and -from only take "normal" email addresses, thus, something like the following will not work:


-from "The Greater Greenville Country Club"


-fromfriendly and -tofriendly allow use of such names, and each can only be used together with its "normal address counterpart" - they do not replace the use of normal email addresses.


Thus, instead of the above example, we should use something like:


-from -fromfriendly "The Greater Greenville Country Club"


Prepared Example Files



The archive contains one file:



Batch File Contents


This is the content of the batch file:


netmailbot -to -tofriendly "ExclamationSoft Test Account" -from -fromfriendly "Test-o-matic Corp." -server -body "Friendly Test!"




  1. Unzip the file. This will produce a directory called "FriendlyAddressing". Open this directory.
  2. Open Notepad and edit the batch file "FriendlyAddressing.bat". Change the values of the parameters -to, -tofriendly, -from, -fromfriendly, and -server to appropriate values of your choosing and your mail server.
  3. Invoke the batch file by double-clicking the icon or straight from the command line.
  4. NetMailbot should start up and, upon finishing, the email addresse specified with the -to parameter should  receive an email message with the specified "friendly" names in the header.