Modifying Sender's email in Pipeline Jenkins

In using pipeline Jenkins I would like the Sender’s email to be sown as <server_name>@company_name.com. First of all is there a way to modify the Sender’s email based on the job ? Secondly, can the Sender’s email be passed as a variable containing the server name.

Was able to solve my issue with information from these links: