Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mailing Multiple reciepients

Status
Not open for further replies.

powahusr

Technical User
Jan 22, 2001
240
0
0
US
My web host switched from QMAIL to Sendmail. I'm unfamiliar with "Sendmail" parameters, how do you use CC with Sendmail?

Bellow is a segment of an email script in my cgi script. The value of Variable "email2" comes from a form. That email address does not receive an email when the script executes, only "email1" receives mail. What is the correct way to distribute mail to both addresses?


print MAIL "To: $in{'email1'}, $in{'email2'}\n";
print MAIL "Reply-To:\n";
print MAIL "From: $in{'email1'}\n";
print MAIL "Subject: Foo\n\n";


Thanks in advance!!!
 
You may want to create a group in the /etc/alias file:

Format =

group1: user1, user2

When group1 receives an email, sendmail distributes it to user1 and user2.

After making changes in your /etc/aliases file you must type newaliases.


Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top