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).
But I am getting only "no-reply@alert.com" in sender address where as I want as "Mail Alert <no-reply@alert.com>"
hi, Gurus,
I need some help with sending mail out from my UNIX server:
It is running Solaris 2.6 and the sendmail version is 8.8.
Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null
Version 8.8.8+Sun
Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET
... (5 Replies)
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)
Hello,
I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail.
How can I use the following awk statement in a perl script?
grep UNIXadmins /root/mail.conf | awk '{ print $2}'
and use the output to send a e-mail.
Any help would... (1 Reply)
HP-UX B11.23 ia64
I have a users mail inbox in /var/mail
I want to send all the mail there to another address (an Exchange address).
At the Exchange address, I want it to appear as the original separate emails, with attachments in their original form (e.g. still MIME encoded).
Is that... (6 Replies)
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
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)
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Hello,
I am using centos-6.2
I have apache server,php5 on my system and I want to send mail using sendmail on my system.
when I try to send mail from shell that time mail is succesfully sent to respective address()
but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
LEARN ABOUT BSD
binmail
BINMAIL(1) General Commands Manual BINMAIL(1)NAME
binmail - send or receive mail among users
SYNOPSIS
/bin/mail [ + ] [ -i ] [ person ] ...
/bin/mail [ + ] [ -i ] -f file
DESCRIPTION
Note: This is the old version 7 UNIX system mail program. The default mail command is described in Mail(1), and its binary is in the
directory /usr/ucb.
mail with no argument prints a user's mail, message-by-message, in last-in, first-out order; the optional argument + displays the mail mes-
sages in first-in, first-out order. For each message, it reads a line from the standard input to direct disposition of the message.
newline
Go on to next message.
d Delete message and go on to the next.
p Print message again.
- Go back to previous message.
s [ file ] ...
Save the message in the named files (`mbox' default).
w [ file ] ...
Save the message, without a header, in the named files (`mbox' default).
m [ person ] ...
Mail the message to the named persons (yourself is default).
EOT (control-D)
Put unexamined mail back in the mailbox and stop.
q Same as EOT.
!command
Escape to the Shell to do command.
* Print a command summary.
An interrupt normally terminates the mail command; the mail file is unchanged. The optional argument -i tells mail to continue after
interrupts.
When persons are named, mail takes the standard input up to an end-of-file (or a line with just `.') and adds it to each person's `mail'
file. The message is preceded by the sender's name and a postmark. Lines that look like postmarks are prepended with `>'. A person is
usually a user name recognized by login(1). To denote a recipient on a remote system, prefix person by the system name and exclamation
mark (see uucp(1C)).
The -f option causes the named file, for example, `mbox', to be printed as if it were the mail file.
When a user logs in he is informed of the presence of mail.
FILES
/etc/passwd to identify sender and locate persons
/usr/spool/mail/* incoming mail for user *
mbox saved mail
/tmp/ma* temp file
/usr/spool/mail/*.lock lock for mail directory
dead.letter unmailable text
SEE ALSO Mail(1), write(1), uucp(1C), uux(1C), xsend(1), sendmail(8)BUGS
Race conditions sometimes result in a failure to remove a lock file.
Normally anybody can read your mail, unless it is sent by xsend(1). An installation can overcome this by making mail a set-user-id command
that owns the mail directory.
7th Edition April 29, 1985 BINMAIL(1)