Sponsored Content
Top Forums UNIX for Advanced & Expert Users UNIX mail blank in the TO address Post 302875992 by Yoda on Thursday 21st of November 2013 10:44:29 AM
Old 11-21-2013
Use sendmail, specify just CC & BCC:
Code:
{
        print "CC: user@domain.com"
        print "BCC: user@domain.com"
        print "Subject: Testing CC & BCC"
        print "Testing CC & BCC"
} | /usr/sbin/sendmail -t


Last edited by Yoda; 11-21-2013 at 01:39 PM.. Reason: Edit link to unix.com manual page
 

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

Tracing an e-mail address

Not sure if this is the right place to post this, but I thought I'd start here. Not really a Unix question, but I'm hoping the gurus here can help me in an area I know little about. Someone got one of my credit card numbers. Tried to use it to charge a bunch of stuff over the internet. The... (4 Replies)
Discussion started by: denverd0n
4 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. HP-UX

Sending msg From Unix Server to an E-mail Address

Dear Brothers in Unix I would like to change some HP-UX settings in order that the system send a message to root it should be copied to my e-mail address in Microsoft Exchange Server. Please can you help me. Best Regards and thanks in advance Gege (2 Replies)
Discussion started by: cgege
2 Replies

4. Shell Programming and Scripting

Pull E-mail address from file, send e-mail

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)
Discussion started by: DC Heard
1 Replies

5. Shell Programming and Scripting

Unix mail with blank line on variable

I am testing a ksh script for email. In the subject/content of the mail there is some dynamic variables like date and charges. However these variables occupied the entire line erase other in that particular line For e.g. there is a mail message: This mail is intent... Your total... (2 Replies)
Discussion started by: balaji.rengaraj
2 Replies

6. Shell Programming and Scripting

UNIX Script to query Active Directory: give cn (NT login name) and receive mail (Email address)

Hi folks I need to write UNIX script (with ldapsearch) to query Active Directory. Input is NT login name and output is Email address. Attached a screenshot of Sysinternals "AD Explorer". I need to do the same in CLI. http://i.imgur.com/4s6FB.png I am absolute LDAP/ldapsearch noob. (0 Replies)
Discussion started by: slashdotweenie
0 Replies

7. Shell Programming and Scripting

Mail with From Address

hello all When i send an email using "mail" command, it is received by intended receiver but From Adress is getting displayed as user@hostname. Is there any way to change the From address of Email to xxx@bbb.com? Apprecite your response (2 Replies)
Discussion started by: forums123456
2 Replies

8. Shell Programming and Scripting

mail using mail address in a file

I have a file which contains few email address. I have few scripts which use the same mail address. so if any change in mail id like if any user do not want to receive the mail i can just edit a single file instead of many scripts. So i want the scripts to use that file. How can this be done. (2 Replies)
Discussion started by: gpk_newbie
2 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
EDITMAP(8)						      System Manager's Manual							EDITMAP(8)

NAME
editmap - query and edit single records in database maps for sendmail SYNOPSIS
editmap [-C file] [-N] [-f] [-q|-u|-x] maptype mapname key [ "value ..." ] DESCRIPTION
Editmap queries or edits one record in database maps used by the keyed map lookups in sendmail(8). Arguments are passed on the command line and output (for queries) is directed to standard output. Depending on how it is compiled, editmap handles up to three different database formats, selected using the maptype parameter. They may be dbm DBM format maps. This requires the ndbm(3) library. btree B-Tree format maps. This requires the new Berkeley DB library. hash Hash format maps. This also requires the Berkeley DB library. If the TrustedUser option is set in the sendmail configuration file and editmap is invoked as root, the generated files will be owned by the specified TrustedUser. Flags -C Use the specified sendmail configuration file for looking up the TrustedUser option. -N Include the null byte that terminates strings in the map (for alias maps). -f Normally all upper case letters in the key are folded to lower case. This flag disables that behaviour. This is intended to mesh with the -f flag in the K line in sendmail.cf. The value is never case folded. -q Query the map for the specified key. If found, print value to standard output and exit with 0. If not found then print an error message to stdout and exit with EX_UNAVAILABLE. -u Update the record for key with value or inserts a new record if one doesn't exist. Exits with 0 on success or EX_IOERR on failure. -x Deletes the specific key from the map. Exits with 0 on success or EX_IOERR on failure. SEE ALSO sendmail(8), makemap(8) HISTORY
The editmap command has no history. $Date: 2003/02/01 17:07:42 $ EDITMAP(8)
All times are GMT -4. The time now is 10:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy