Sponsored Content
Top Forums Shell Programming and Scripting How to change the sender's name or E-mail address in mutt command Post 302692903 by pamu on Tuesday 28th of August 2012 08:15:11 AM
Old 08-28-2012
Try this...

Not sure how it works.....

Code:
mutt -e "unmy_hdr from; my_hdr From: rmcdonald@supersize.com.au\"
 -e "set realname=\"Ronald McDonald\"  "   \
 -s "this is the subject line ...  " \
 -a attachmentfile.txt  -a anotherFile.doc\
 -- ttttoooo@toAddress.co.uk < bodyOfEmail.txt

attached source link -

http://www.cyberciti.biz/tips/sendin...ttachment.html

Last edited by pamu; 08-28-2012 at 09:16 AM.. Reason: attached source link
This User Gave Thanks to pamu For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mailx sender address customisation

Hi All, I'm on UNIX -Solaris... I'm trying to send mail usin Mailx..... The script is working fine and attachments are also being sent.... BUT, when I receive the mail,, the sender address shown is the unix login id name.... Any way by which I could manipulate this in my script command or any... (1 Reply)
Discussion started by: vasan_srini
1 Replies

2. AIX

Change sender e-mail address

When sending emails to the outside world, aix present itself as d_prod@production1.pdc.itercom.org. This is causing some issue with our e-mail server. So we need to change the name to d_prod@itercom.org... Does any one know how this can be accomplished? Thank you (3 Replies)
Discussion started by: cchiang12
3 Replies

3. UNIX for Dummies Questions & Answers

Different Sender Address

Hello Following command send link to division managers. echo http://severname:8081/account-reports/2008Jun19-2008Jun25.2/index.html | mail -s "Weekly Division Sales Report" johndoe@companmail.com QUESTION. Above command send a body which is link of division report in email with... (1 Reply)
Discussion started by: paulds
1 Replies

4. Shell Programming and Scripting

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... (1 Reply)
Discussion started by: balajiora
1 Replies

5. Shell Programming and Scripting

change mail sender in unix aix

Hi All, I have a ksh script, in which it sends mail successfully but from root id(root@system.com). I want it to be sent as customid@system.com. I verified man pages of mail, and found '-u userid' option. But it is failing. code snippet below: mail -s "subject" -u $customid... (7 Replies)
Discussion started by: Arunprasad
7 Replies

6. Red Hat

How to change sender email address in mail -s command

Just having trouble trying to figure out what the option is. When I do mail -s "Subject" someuser@example.com I can't seem to specify "from" or "sender" option as I need it for my task. I tried using --f or -f though it didn't work. Can someone please tell me what other option... (0 Replies)
Discussion started by: rockf1bull
0 Replies

7. UNIX for Advanced & Expert Users

Mail -s help ,change the sender to correct one

Hi expert I use mail -s "hello" bruce@sohu.com <kernel-img.conf send mail, it display the sender is lyang001@lyang001-OptiPlex-9010.corp.ad..com How can I change the sender to yanglei.fage@gmail.com to default ? (1 Reply)
Discussion started by: yanglei_fage
1 Replies

8. Shell Programming and Scripting

To define a sender name in mail command

Hi, I am using the unix script to send a report on daily basis using the mail command. Here the sender name is appearing as myname i.e. chandru (userid@machine.unix.domain.com). Is there any way to change sender name as a user defined name? example i need to change it to SupportTeam... (1 Reply)
Discussion started by: schandru
1 Replies

9. Red Hat

How to send mail with sender mail address and name?

Hi, I am trying to send a mail using "mail" command in unix. I wanted to give sender name and sender address. I tried different options ,but still it shows only mail address(No name). mail -s "Alert mail : Nothing running !!!" $email -- -F"Mail Alert" -fno-reply@alert.com But I am getting... (4 Replies)
Discussion started by: jaggy
4 Replies

10. Shell Programming and Scripting

Mailx command to include sender address

Hi, I m using mailx to send email. I am using sender=server name(display name) echo "body" | mailx -s "subject" -b "bcc address" "to address" -- -f "$sender". I should get email with sender as only display name. In stead i am getting displayname@server address. Please suggest Use code... (1 Reply)
Discussion started by: usrrenny
1 Replies
MUTTPROFILE(1)						User Contributed Perl Documentation					    MUTTPROFILE(1)

NAME
muttprofile - Choose a Mutt Profile SYNOPSIS
muttprofile [-a|--active string] [-d|--dir directory] [-h|--help] [-p|--profile regexp] [-v|--view] [-V|--Version] [profile] DESCRIPTION
muttprofile is a simple utility to choose a profile to be used with Mutt email-client. It has two operating modes: command-line and inter- active. Muttprofile goes to interactive mode if no command-line arguments are present or option -v|--view is present without profile name. Muttprofile looks for profile files in the Mutt directory, opens them and looks for NAME and DESC definitions. It then creates a symbolic link to the profile chosen by the user. The rest of the work is done with a Mutt macro. USAGE
Interactive mode: Type the name of the profile and the program creates a symlink to load the profile. Press <tab> to complete, <ctrl-d> to see list of choices. Command-line options: -a | --active Set the name for active profile symlink, default is profile.active -d | --dir Set the Mutt directory, default is ~/.mutt -h | --help prints a short help and exits -p | --profile (Perl) Regexp to match profile files in Mutt directory -v | --view Instead of creating a symlink, view profile contents -V | --version prints the version information and exits (use --version for long and -V for short version) profile if profile exits, create the symlink to load it from Mutt, otherwise exit with error INSTALL
Muttprofile requires no installation, but you might have to check the first line of the file ("#!/usr/bin/perl -w") and change the path to perl if needed ('which perl' might be useful here :-) SETTING UP PROFILES
Muttprofile checks the profile files for the following information: # NAME: name for your profile # DESC: description of your profile This information is used for choosing and displaying available profiles. DESC is optional, but if NAME is missing, filename is used instead. USING MUTTPROFILE FROM MUTT
Perhaps the easiest way to invoke muttprofile from mutt is to bind a key with mutt macro command. For example, adding this to your mut- trc-file macro index <F10> "!muttprofile :source ~/.mutt/profile.active m" "New message with profile" binds the function key <F10> to start muttprofile, load the profile and start a new message EXIT CODES
The default exit codes for muttprofile are: 0 OK 1 PROFILE ALREADY ACTIVE 2 ERROR These codes can be used in shell scripts etc. FURTHER INFORMATION
Discussion of profiles with Mutt: http://www.iki.fi/martti.rahkila/mutt/ Mutt home page: http://www.mutt.org MODULES
muttprofile uses the perl modules "Term::Complete" and "Getopt::Long" that both come with the Perl distribution. LICENCE
muttprofile is distibuted under GNU General Public Licence (GPL), same as Mutt. For details, see http://www.gnu.org/copyleft/gpl.html BUGS
None known so far. Inevitably to appear sooner or later. VERSION
1.0.0 (current) First public release. 2000-05-10 Martti Rahkila AUTHOR
Martti Rahkila martti.rahkila@iki.fi http://www.iki.fi/martti.rahkila/mutt SEE ALSO
mutt(1), perl(1) perl v5.8.0 2003-01-15 MUTTPROFILE(1)
All times are GMT -4. The time now is 11:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy