Sendmail not showing recipients


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Sendmail not showing recipients
Prev   Next
# 1  
Old 02-17-2012
Sendmail not showing recipients

I've figured out to do a mail merge with /usr/lib/sendmail which is extremely helpful as it is lightning fast compared to an Outlook mail merge which pretty much locks up my machine while it struggles to push out the emails. I figured out how to send html emails, with dynamic variables, and how our company translates id's to addresses which is 95% done. The last obstacle I'm facing is that the emails do not show to whom the email was sent.

When I use Outlook mail merge, which does not have an option for Cc'ing multiple users, I have to put this pathetic note at the top saying "This email was also sent to <person1>, <person2>, <person3> (Outlook mail merge does not allow cc)". So I'm trying to use sendmail but it's now showing the recipients in the received mail so it doesn't achieve the desired result. This is how I have it set up:
Code:
while read line
do
REQUEST_NUMBER=`echo $line | cut -d" " -f8` USER_LOGIN=`echo $line | cut -d" " -f2` END_USER=`echo $line | cut -d" " -f3` REQUESTOR=`echo $line | cut -d" " -f4` SERVER_OWNER=`echo $line | cut -d" " -f5`
(
cat html_greeting echo $END_USER cat html_body echo $REQUESTOR cat html_server_owner echo $SERVER_OWNER cat html_closing
) | /usr/lib/sendmail -f NO-REPLY@domain $SERVER_OWNER,$REQUESTOR,$END_USER done < txt

Where txt is a sheet of data w/ all the id's and stuff on each line. I tried putting the recipients without commas, inside quotes, with commas and inside quotes...several different combinations. The emails are sent and received but the three people will not see that they have all been send the email so there could be some confusion as to who is in the loop and who isn't. Is there a reason those three addresses would not show on the receiving email?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Clarifying sendmail configuration - sendmail-client offline

Hi all, I have read about sendmail running as 2 separate process. 1 as a MSP, and the other as the real daemon or MTA. In my current configuration, the sendmail-client is disabled. Both submit.cf and sendmail.cf are left as default untouch I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies

2. Shell Programming and Scripting

Showing error

if ; then rm -rf "${x}"_"${y}"_abc_pqr.dat error: `then' unmatchedCan anyone please help me in correcting it. Please use code tags next time for your code and data. Thanks (2 Replies)
Discussion started by: D_Sethi
2 Replies

3. UNIX for Dummies Questions & Answers

Problem getting mailx to send true Bcc mail to multiple recipients

I am having trouble getting mailx to send multiple Bcc mails out without everyone in the list of recipients seeing everyone else's email addresses. I looked at the man pages of my system and seem to be following the syntax correctly, but the mails still go out as if I were just putting in a list of... (7 Replies)
Discussion started by: legrandtimonier
7 Replies

4. UNIX for Advanced & Expert Users

Sendmail questions, SCO 5.0.6 sendmail 8.11.0

I am running SCO 5.0.6 and using sendmail 8.11.0 and having issues with smtp authentication. When trying to send mail the following message will kick back. (reason: 530 5.7.1 Authentication required) 530 5.7.1 Authentication required Not sure what needs to be tweeked in sendmail.cf but I... (1 Reply)
Discussion started by: ziggy6
1 Replies

5. UNIX for Advanced & Expert Users

Multiple recipients with sendmail

Hi, I use the following to send a mail : sendmail -v someone@box.com < /appli/oracle/rap.txt Can I give several mail address for destination ? How ? For exemple : sendmail -v someone@box.com, someone2@box.com, someone3@box.com < /appli/oracle/rap.txt Thank you. (6 Replies)
Discussion started by: big123456
6 Replies

6. Programming

Python: multiple email recipients

I am using a the following backup script to backup a server to USB. USBBackupScript - RdiffBackupWiki However I don't know python and would like to alter the script so I can send emails about the success or failure of the backup to multiple recipients. I did do some research but the limit... (0 Replies)
Discussion started by: jelloir
0 Replies

7. AIX

5.2 who not showing all login

I have 1 box running 5.2 and another running 5.3. Both use the NIS accounts and NFS home directories. Users can telnet on to both and 'who' displays the login. However when users run xterms using a remote X server (e.g. Exceed), by telnetting then running /usr/bin/X11/xterm -d xxx.xxx.xxx.xxx:0 ... (1 Reply)
Discussion started by: spitzie
1 Replies

8. UNIX for Dummies Questions & Answers

using mailx with multiple recipients

I am trying to use a file containing email addresses in my mailx command like the following: SUBJECT="Kronos User Report" BODY="kronos.txt" MAILTO="kronosmail.txt" mailx -s "$SUBJECT" $MAILTO < $BODY This works fine for the body of the message but for the recipient it says: ... (6 Replies)
Discussion started by: sdhalepaska
6 Replies

9. Post Here to Contact Site Administrators and Moderators

Posts not showing up

I received the following e-mail notification, but neither this post nor my previous post is showing up. ---------------------------------------------------------------- patwa has just replied to a thread you have subscribed to entitled - Waiting between commands - in the UNIX for Dummies... (1 Reply)
Discussion started by: cfajohnson
1 Replies

10. UNIX for Dummies Questions & Answers

ps -ef not showing all info

Hi there, How can I expand the command filed sizing when using a ps command. With diretories and script names and parameters being set I'm not getting some of the information that I need (at the end of the command line). I'm using HP_UX 11i. Cheers, Neil (2 Replies)
Discussion started by: nhatch
2 Replies
Login or Register to Ask a Question