Overwriting sender's information for mailx

Hello Forum members.

We currently have a reusable script called "send_email.sh" that is used to send us alerts when our daily jobs are completed. Script uses the mailx utility and below is a sample message:

-----Original Message-----
From: Servacct ETL process owner - Manager Database System [mailto:abc@google.com]
Sent: Tuesday, June 08, 2010 10:09 AM
To: Data-Warehousing-Support
Subject: SUCCESSFUL - EXT_SAFEWATCH.BD_SAFEWATCH

SUCCESSFUL - EXT_SAFEWATCH.BD_SAFEWATCH
-----------------------------------------------------------------------

Is there a way that I can overwrite the sender info to the following:
From: "Servacct ETL process owner - Manager Database System"
To: "EDW Prod"

Thank you.

---------- Post updated at 03:38 PM ---------- Previous update was at 01:11 PM ----------

Please close post. I was able to find the solution.

Thanks.

My only suggestion would have been that it comes from the Gecos field if /etc/passwd (or wherever that's defined), but it would be nice if you shared your answer... :slight_smile:

Used the -r option in mailx. Google is my friend. :slight_smile: