linux mail client code example
Example 1: linux mail command
mail -s "This is the subject" [email protected] <<< 'This is the message'
Example 2: linux show mail server
#you can see what mail servers process is listening to mail port
lsof -i :25