![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding an email address | mandriver | Shell Programming and Scripting | 3 | 09-17-2008 01:42 PM |
| Different Sender Address | paulds | UNIX for Dummies Questions & Answers | 1 | 07-01-2008 02:29 PM |
| Change sender e-mail address | cchiang12 | AIX | 3 | 11-18-2006 03:18 PM |
| Send email where # is in the email address - Using Unix | jingi1234 | UNIX for Dummies Questions & Answers | 1 | 05-23-2005 11:23 AM |
| mailx sender address customisation | vasan_srini | UNIX for Dummies Questions & Answers | 1 | 09-10-2001 08:40 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Sender email address has to changes
I am sending email with attachment using mail and uuencode command.
Ex: (echo "$EMAIL_BODY"; uuencode $FILE ATTACH.TXT) || mail "$EMAIL_ID" -s "$EMAIL_SUB" I am getting email from "applmgr@rigelapp01.us.dell.com". I want to change this email address into ADMIN_NO_REPLY@rigelapp01.us.dell.com Can anyone throw some light on this issue. Regards BS -----Post Update----- I found the solution (echo "$EMAIL_BODY"; uuencode $FILE ATTACH.TXT) || mail -s "$EMAIL_SUB" "$EMAIL_ID" -- -fme@myaddress.com Regards BS |
|
||||
|
You could try something like this.
Code:
TO="user@domain.com"
BCC="bccuser@domain.com"
FROM="fromuser@domain.com"
(
echo "To: $TO"
echo "Bcc: $BCC"
echo "From: $FROM"
echo "What ever you like here"
cat $FILENAME
) | /usr/sbin/sendmail -t
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|