install Mailsend on Centos
Send automated mail with mailsend on linux, mailsend is software from third party built by Muhammad muquit. Function of mailsend in order to facilitate the system administrator send automated email from server, this function is utilized by system administrator to send alerts or logs realtime. in this article I will install on centos 6.5, if you dont have mailsend you can download mailsend here or can also download from github
for the first step that is exract mailsend with unzip, please type the command unzip mailsend-master.zip, make sure you have installed openssl before. The next step is to go into the mailsend-master directory, default installation location for mailsend is /usr/local.
if you want to move the default installation location please type the command.
then you have to compile
and then please type the command one by one.
mailsend installation process is complete. you can check the default location for mailsend. please type command which mailsend like this.
you can see there /usr/local/bin/mailsend is default installation directory mailsend. for manual documentation mailsend please type man mailsend to see how to use it, you can try by sending a manual email by typing the following command /usr/local/bin/mailsend match the default installation location. Take a look for the screenshot.
or you can create a script and add in to crontab, i have simple script like this.
127.0.01 change to your smtp
-d for mailserver domain
-t for destination email
-f for mail sender
-sub for subject