I have written the below script to automate email notification.
#!/bin/bash
TO_ADDRESS="[email protected]"
FROM_ADDRESS="[email protected]"
SUBJECT="November 2016 Step"
BODY="Hi All,\n\n Product Mapping Check is done.\n\n Regards, \n\n Pratik"
echo ${BODY}| mail -s ${SUBJECT} ${TO_ADDRESS} -- -r ${FROM_ADDRESS}
Requirement : A unix script when executed should send an email from [email protected] to [email protected] with above subject and body. When the script is run it should ask for month year parameter. For example register.sh is the script name. the run command should look like
> register.sh November 2016
When the above script is executed, it should take the month and year input and copy it to the subject line . Then send out the email.
Let me know if i need to config anything or call any server details in the script.