Email the users about their existing groups

Hi Guys,

I want a script where in I need to send an email to individual users about their groups.

OS:unix redhat

Shell :Bash.

The mail should be like,"Hi &username , you are in part of &group1,&group2 .."

I need to mail to their personal email id mostly @outlook. Not to their UNIX.

The email id will be the suffix of the respective username.

*I Would be thankful if you can write a code as am new to UNIX *

Regards,
Vijay.

When we get the same request from two people around Hyderabad in less than a week, we have to ask why that might happen... Is this a homework assignment?

1 Like